mirror of
https://github.com/bitwarden/server
synced 2026-01-03 17:14:00 +00:00
running as bitwarden user
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
FROM microsoft/aspnetcore:2.0.5
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
unzip \
|
||||
@@ -7,8 +8,8 @@ RUN apt-get update \
|
||||
|
||||
RUN groupadd -g 999 bitwarden && \
|
||||
useradd -r -u 999 -g bitwarden bitwarden
|
||||
USER 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 \
|
||||
@@ -21,5 +22,9 @@ EXPOSE 80
|
||||
COPY obj/Docker/publish .
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
USER root
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
USER bitwarden
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
/etc/iconserver/iconserver &
|
||||
/iconserver/iconserver &
|
||||
dotnet /app/Icons.dll iconsSettings:bestIconBaseUrl=http://localhost:8080
|
||||
|
||||
Reference in New Issue
Block a user