mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
running as bitwarden user
This commit is contained in:
@ -1,9 +1,17 @@
|
||||
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"]
|
||||
|
Reference in New Issue
Block a user