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