mirror of
https://github.com/bitwarden/server.git
synced 2025-12-11 13:53:48 -06:00
Fix attachments container (#6165)
This commit is contained in:
parent
000d1f2f6e
commit
d74c71c1d0
@ -26,7 +26,6 @@ WORKDIR /source/util/Server
|
|||||||
RUN . /tmp/rid.txt && dotnet restore -r $RID
|
RUN . /tmp/rid.txt && dotnet restore -r $RID
|
||||||
|
|
||||||
# Build project
|
# Build project
|
||||||
WORKDIR /source/util/Server
|
|
||||||
RUN . /tmp/rid.txt && dotnet publish \
|
RUN . /tmp/rid.txt && dotnet publish \
|
||||||
-c release \
|
-c release \
|
||||||
--no-restore \
|
--no-restore \
|
||||||
@ -48,7 +47,8 @@ ENV SSL_CERT_DIR=/etc/bitwarden/ca-certificates
|
|||||||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
RUN apk add --no-cache curl \
|
RUN apk add --no-cache \
|
||||||
|
curl \
|
||||||
icu-libs \
|
icu-libs \
|
||||||
shadow \
|
shadow \
|
||||||
&& apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community gosu
|
&& apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community gosu
|
||||||
|
|||||||
@ -23,17 +23,17 @@ if [ "$(id -u)" = "0" ]
|
|||||||
then
|
then
|
||||||
# Create user and group
|
# Create user and group
|
||||||
|
|
||||||
addgroup -g "$LGID" -S "$GROUPNAME" 2>/dev/null || true
|
groupadd -o -g $LGID $GROUPNAME >/dev/null 2>&1 ||
|
||||||
adduser -u "$LUID" -G "$GROUPNAME" -S -D -H "$USERNAME" 2>/dev/null || true
|
groupmod -o -g $LGID $GROUPNAME >/dev/null 2>&1
|
||||||
mkdir -p /home/$USERNAME
|
useradd -o -u $LUID -g $GROUPNAME -s /bin/false $USERNAME >/dev/null 2>&1 ||
|
||||||
chown $USERNAME:$GROUPNAME /home/$USERNAME
|
usermod -o -u $LUID -g $GROUPNAME -s /bin/false $USERNAME >/dev/null 2>&1
|
||||||
|
mkhomedir_helper $USERNAME
|
||||||
|
|
||||||
# The rest...
|
# The rest...
|
||||||
|
|
||||||
chown -R $USERNAME:$GROUPNAME /bitwarden_server
|
chown -R $USERNAME:$GROUPNAME /bitwarden_server
|
||||||
mkdir -p /etc/bitwarden/core/attachments
|
mkdir -p /etc/bitwarden/core/attachments
|
||||||
chown -R $USERNAME:$GROUPNAME /etc/bitwarden
|
chown -R $USERNAME:$GROUPNAME /etc/bitwarden
|
||||||
|
|
||||||
gosu_cmd="gosu $USERNAME:$GROUPNAME"
|
gosu_cmd="gosu $USERNAME:$GROUPNAME"
|
||||||
else
|
else
|
||||||
gosu_cmd=""
|
gosu_cmd=""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user