mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
630376400f
* fix: util/Nginx/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN10-LIBXML2-1277346 - https://snyk.io/vuln/SNYK-DEBIAN10-LIBXML2-1277349 - https://snyk.io/vuln/SNYK-DEBIAN10-LIBXML2-1277350 - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-1569403 - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-1569406 * fix: util/Nginx/Dockerfile-k8s to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN10-LIBXML2-1277346 - https://snyk.io/vuln/SNYK-DEBIAN10-LIBXML2-1277349 - https://snyk.io/vuln/SNYK-DEBIAN10-LIBXML2-1277350 - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-1569403 - https://snyk.io/vuln/SNYK-DEBIAN10-OPENSSL-1569406 Co-authored-by: snyk-bot <snyk-bot@snyk.io>
28 lines
636 B
Docker
28 lines
636 B
Docker
FROM nginx:stable
|
|
|
|
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 logrotate.sh /
|
|
COPY entrypoint.sh /
|
|
|
|
EXPOSE 8080
|
|
EXPOSE 8443
|
|
|
|
RUN chmod +x /entrypoint.sh \
|
|
&& chmod +x /logrotate.sh
|
|
|
|
HEALTHCHECK CMD curl --insecure -Lfs https://localhost:8443/alive || curl -Lfs http://localhost:8080/alive || exit 1
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|