mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
running as bitwarden user
This commit is contained in:
@ -1,13 +1,17 @@
|
||||
FROM microsoft/aspnetcore:2.0.5
|
||||
|
||||
USER root
|
||||
RUN groupadd -g 999 bitwarden && \
|
||||
useradd -r -u 999 -g bitwarden bitwarden
|
||||
USER bitwarden
|
||||
|
||||
USER bitwarden
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
COPY obj/Docker/publish .
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
USER root
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
USER bitwarden
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
Reference in New Issue
Block a user