Skip to content

Commit e1afbce

Browse files
committed
chore(container): simplify creation of dynamically allocated system user
1 parent bccf4a1 commit e1afbce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ COPY --chmod=755 scripts/healthcheck.sh ./healthcheck.sh
6262
COPY --chmod=755 storage ./docker-compose
6363

6464
# Add non-root user and make volume mount point writable
65-
RUN groupadd --system fastapi && \
66-
adduser --system --ingroup fastapi --disabled-password --gecos '' fastapi && \
65+
RUN adduser --system --disabled-password --group fastapi && \
6766
mkdir -p /storage && \
6867
chown fastapi:fastapi /storage
6968

0 commit comments

Comments
 (0)