fix(docker/rootless): missing bash under alpine

This commit is contained in:
Elian Doran 2025-05-27 20:05:08 +03:00
parent c46d5cc9e9
commit 061e238a8e
No known key found for this signature in database

View File

@ -18,6 +18,7 @@ ENV GID=${GID}
# Install runtime dependencies and create user with specific UID/GID # Install runtime dependencies and create user with specific UID/GID
RUN apk add --no-cache dumb-init && \ RUN apk add --no-cache dumb-init && \
apk add --no-cache bash && \
# Alpine uses addgroup/adduser (from busybox) instead of groupadd/useradd # Alpine uses addgroup/adduser (from busybox) instead of groupadd/useradd
addgroup -g ${GID} ${USER} && \ addgroup -g ${GID} ${USER} && \
adduser -u ${UID} -G ${USER} -s /bin/sh -D -h /home/${USER} ${USER} adduser -u ${UID} -G ${USER} -s /bin/sh -D -h /home/${USER} ${USER}