mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
18 lines
310 B
Docker
18 lines
310 B
Docker
FROM nginx:1.12
|
|
|
|
USER root
|
|
RUN groupadd -g 999 bitwarden && \
|
|
useradd -r -u 999 -g bitwarden bitwarden
|
|
|
|
USER bitwarden
|
|
COPY nginx.conf /etc/nginx
|
|
COPY proxy.conf /etc/nginx
|
|
COPY mime.types /etc/nginx
|
|
COPY entrypoint.sh /
|
|
|
|
USER root
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
USER bitwarden
|
|
ENTRYPOINT ["/entrypoint.sh"]
|