1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
bitwarden-server/util/Nginx/Dockerfile
2019-07-26 14:04:45 -04:00

26 lines
525 B
Docker

FROM nginx:1.16
LABEL com.bitwarden.product="bitwarden"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY nginx.conf /etc/nginx
COPY proxy.conf /etc/nginx
COPY mime.types /etc/nginx
COPY security-headers.conf /etc/nginx
COPY security-headers-ssl.conf /etc/nginx
COPY entrypoint.sh /
EXPOSE 8080
EXPOSE 8443
RUN chmod +x /entrypoint.sh
HEALTHCHECK CMD curl -L -f http://localhost/alive || exit 1
ENTRYPOINT ["/entrypoint.sh"]