homepage/docker/server/Dockerfile
Tom Alexander 57c38f5457
Some checks failed
semver Build semver has succeeded
build-homepage Build build-homepage has failed
Add nginx to dockerfile and deploy a static index.html.
2023-07-09 23:55:45 -04:00

11 lines
476 B
Docker

FROM harbor.fizz.buzz/dockerhub/library/alpine:3.18
RUN apk add --no-cache bash nginx
RUN addgroup web && adduser -D -G web web && install -d -D -o web -g web -m 700 /srv/http/public
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
COPY --chown=web:web docker/nginx.conf /srv/http
COPY --chown=web:web static/ /srv/http/public/
ENTRYPOINT ["/usr/sbin/nginx", "-c", "/srv/http/nginx.conf", "-e", "stderr", "-g", "daemon off;"]