mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
* testing-wolfi * testing alpine * fix gosu download * fix Admin dockerfile * update dockerfiles * alpine-compatible-entrypoint-script-for-api-test * make-entrypoint-scripts-alpine-compatible * testing nginx with alpine * cleaning up comments from dockerfile from testing * restore accidentally deleted icon * remove unused file * pin alpine, update apk add no cache * remove comments from testing * test shadow implementtaion for entrypoints * add shadow package, revert entrypoints, change from bash to shell for entry * add icu to setup container, update helpers to use shell * update migrator utility * add missing krb5 libraries
29 lines
820 B
Docker
29 lines
820 B
Docker
FROM --platform=$BUILDPLATFORM nginx:stable-alpine3.21
|
|
|
|
ARG TARGETPLATFORM
|
|
LABEL com.bitwarden.product="bitwarden"
|
|
|
|
ENV SSL_CERT_DIR=/etc/bitwarden/ca-certificates
|
|
|
|
RUN apk add --no-cache curl \
|
|
shadow \
|
|
&& apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community gosu
|
|
|
|
COPY util/Nginx/nginx.conf /etc/nginx
|
|
COPY util/Nginx/proxy.conf /etc/nginx
|
|
COPY util/Nginx/mime.types /etc/nginx
|
|
COPY util/Nginx/security-headers.conf /etc/nginx
|
|
COPY util/Nginx/security-headers-ssl.conf /etc/nginx
|
|
COPY util/Nginx/logrotate.sh /
|
|
COPY util/Nginx/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"]
|