1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-23 17:07:42 +01:00

run as bitwarden group/user

This commit is contained in:
Kyle Spearrin 2018-03-23 21:17:37 -04:00
parent 24b8619bd1
commit e499087a57
6 changed files with 25 additions and 0 deletions

View File

@ -1,5 +1,9 @@
FROM microsoft/aspnetcore:2.0.5
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish .

View File

@ -5,6 +5,10 @@ RUN apt-get update \
cron \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish/Api .

View File

@ -5,6 +5,10 @@ RUN apt-get update \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
WORKDIR /tmp
COPY iconserver.sha256 .
RUN curl -L -o iconserver.zip https://github.com/mat/besticon/releases/download/v3.6.0/iconserver_linux_amd64.zip \

View File

@ -1,5 +1,9 @@
FROM microsoft/aspnetcore:2.0.5
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
WORKDIR /app
EXPOSE 80
COPY obj/Docker/publish .

View File

@ -1,2 +1,7 @@
FROM microsoft/aspnetcore:2.0.5
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
COPY obj/Docker/publish /bitwarden_server

View File

@ -5,5 +5,9 @@ RUN apt-get update \
openssl \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -g 999 bitwarden && \
useradd -r -u 999 -g bitwarden bitwarden
USER bitwarden
WORKDIR /app
COPY obj/Docker/publish .