mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
BRE-925/switch-web-to-alpine (#15270)
* update dockerfile and entrypoint script * update entrypoint to sh * add icu-libs to web container to fix startup errors * remaining change needed for icu-libs * pin alpine and update apk add commands
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
# Setup
|
||||
|
||||
@@ -22,11 +22,10 @@ fi
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
# Create user and group
|
||||
|
||||
groupadd -o -g $LGID $GROUPNAME >/dev/null 2>&1 ||
|
||||
groupmod -o -g $LGID $GROUPNAME >/dev/null 2>&1
|
||||
useradd -o -u $LUID -g $GROUPNAME -s /bin/false $USERNAME >/dev/null 2>&1 ||
|
||||
usermod -o -u $LUID -g $GROUPNAME -s /bin/false $USERNAME >/dev/null 2>&1
|
||||
mkhomedir_helper $USERNAME
|
||||
addgroup -g "$LGID" -S "$GROUPNAME" 2>/dev/null || true
|
||||
adduser -u "$LUID" -G "$GROUPNAME" -S -D -H "$USERNAME" 2>/dev/null || true
|
||||
mkdir -p /home/$USERNAME
|
||||
chown $USERNAME:$GROUPNAME /home/$USERNAME
|
||||
|
||||
# The rest...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user