mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
bitwarden user for admin
This commit is contained in:
parent
232c9206f2
commit
671492ad71
@ -3,7 +3,14 @@ FROM microsoft/aspnetcore:2.0.5
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
COPY obj/Docker/publish .
|
||||
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
RUN groupadd -g 999 bitwarden \
|
||||
&& useradd -r -u 999 -g bitwarden bitwarden \
|
||||
&& mkdir /etc/bitwarden \
|
||||
&& chown -R bitwarden:bitwarden /etc/bitwarden \
|
||||
&& chmod +x /entrypoint.sh \
|
||||
&& chown bitwarden:bitwarden /entrypoint.sh
|
||||
|
||||
USER bitwarden
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user