1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

running as bitwarden user

This commit is contained in:
Kyle Spearrin
2018-03-23 21:58:45 -04:00
parent e499087a57
commit 19fa9bf806
10 changed files with 57 additions and 15 deletions

View File

@ -1,13 +1,14 @@
FROM microsoft/dotnet:2.0.5-runtime
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
openssl \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
USER bitwarden
WORKDIR /app
COPY obj/Docker/publish .