1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-27 17:47:37 +01:00
bitwarden-server/util/Nginx/Dockerfile

20 lines
558 B
Docker
Raw Normal View History

2017-10-02 22:38:52 +02:00
FROM nginx:1.12
2017-08-04 18:21:13 +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
COPY entrypoint.sh /
2018-03-26 17:21:03 +02:00
RUN groupadd -g 999 bitwarden \
&& useradd -r -u 999 -g bitwarden bitwarden \
&& mkdir /etc/bitwarden \
&& chown -R bitwarden:bitwarden /etc/bitwarden \
&& chmod +x /entrypoint.sh \
&& chown bitwarden:bitwarden /entrypoint.sh \
&& touch /var/run/nginx.pid \
&& chown -R proxytest:proxytest /var/run/nginx.pid \
&& chown -R proxytest:proxytest /var/cache/nginx
USER bitwarden
2017-08-07 22:31:00 +02:00
ENTRYPOINT ["/entrypoint.sh"]