Files
server/util/Nginx/Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
636 B
Docker
Raw Normal View History

FROM nginx:stable
2017-08-04 12:21:13 -04:00
LABEL com.bitwarden.product="bitwarden"
2018-03-27 14:55:33 -04:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
2019-07-26 13:21:46 -04:00
curl \
&& rm -rf /var/lib/apt/lists/*
2018-03-27 14:55:33 -04:00
2017-08-23 22:13:50 -04:00
COPY nginx.conf /etc/nginx
COPY proxy.conf /etc/nginx
COPY mime.types /etc/nginx
2018-08-31 12:55:54 -04:00
COPY security-headers.conf /etc/nginx
COPY security-headers-ssl.conf /etc/nginx
COPY logrotate.sh /
COPY entrypoint.sh /
EXPOSE 8080
EXPOSE 8443
RUN chmod +x /entrypoint.sh \
&& chmod +x /logrotate.sh
2018-03-26 11:21:03 -04:00
2019-07-27 21:53:49 -04:00
HEALTHCHECK CMD curl --insecure -Lfs https://localhost:8443/alive || curl -Lfs http://localhost:8080/alive || exit 1
2019-07-26 12:43:06 -04:00
2017-08-07 16:31:00 -04:00
ENTRYPOINT ["/entrypoint.sh"]