mirror of
https://github.com/bitwarden/server.git
synced 2024-12-24 17:17:40 +01:00
run as bitwarden group/user
This commit is contained in:
parent
24b8619bd1
commit
e499087a57
@ -1,5 +1,9 @@
|
|||||||
FROM microsoft/aspnetcore:2.0.5
|
FROM microsoft/aspnetcore:2.0.5
|
||||||
|
|
||||||
|
RUN groupadd -g 999 bitwarden && \
|
||||||
|
useradd -r -u 999 -g bitwarden bitwarden
|
||||||
|
USER bitwarden
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
COPY obj/Docker/publish .
|
COPY obj/Docker/publish .
|
||||||
|
@ -5,6 +5,10 @@ RUN apt-get update \
|
|||||||
cron \
|
cron \
|
||||||
&& 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
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
COPY obj/Docker/publish/Api .
|
COPY obj/Docker/publish/Api .
|
||||||
|
@ -5,6 +5,10 @@ RUN apt-get update \
|
|||||||
unzip \
|
unzip \
|
||||||
&& 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
|
||||||
|
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
COPY iconserver.sha256 .
|
COPY iconserver.sha256 .
|
||||||
RUN curl -L -o iconserver.zip https://github.com/mat/besticon/releases/download/v3.6.0/iconserver_linux_amd64.zip \
|
RUN curl -L -o iconserver.zip https://github.com/mat/besticon/releases/download/v3.6.0/iconserver_linux_amd64.zip \
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
FROM microsoft/aspnetcore:2.0.5
|
FROM microsoft/aspnetcore:2.0.5
|
||||||
|
|
||||||
|
RUN groupadd -g 999 bitwarden && \
|
||||||
|
useradd -r -u 999 -g bitwarden bitwarden
|
||||||
|
USER bitwarden
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
COPY obj/Docker/publish .
|
COPY obj/Docker/publish .
|
||||||
|
@ -1,2 +1,7 @@
|
|||||||
FROM microsoft/aspnetcore:2.0.5
|
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
|
COPY obj/Docker/publish /bitwarden_server
|
||||||
|
@ -5,5 +5,9 @@ RUN apt-get update \
|
|||||||
openssl \
|
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
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY obj/Docker/publish .
|
COPY obj/Docker/publish .
|
||||||
|
Loading…
Reference in New Issue
Block a user