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
|
2018-03-24 03:16:57 +01:00
|
|
|
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 \
|
2018-03-26 17:47:17 +02:00
|
|
|
&& mkdir /etc/letsencrypt \
|
|
|
|
&& chown -R bitwarden:bitwarden /etc/letsencrypt \
|
|
|
|
&& mkdir /etc/ssl \
|
|
|
|
&& chown -R bitwarden:bitwarden /etc/ssl \
|
2018-03-26 17:21:03 +02:00
|
|
|
&& chmod +x /entrypoint.sh \
|
|
|
|
&& chown bitwarden:bitwarden /entrypoint.sh \
|
|
|
|
&& touch /var/run/nginx.pid \
|
2018-03-26 17:59:29 +02:00
|
|
|
&& touch /etc/nginx/conf.d/default.conf \
|
|
|
|
&& chown bitwarden:bitwarden /var/run/nginx.pid \
|
|
|
|
&& chown bitwarden:bitwarden /etc/nginx/conf.d/default.conf \
|
2018-03-26 17:32:35 +02:00
|
|
|
&& chown -R bitwarden:bitwarden /var/cache/nginx
|
2018-03-26 17:21:03 +02:00
|
|
|
|
|
|
|
USER bitwarden
|
2017-08-07 22:31:00 +02:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|