Skip to content

Commit 18c7d87

Browse files
authored
feat(docker): add the user with explicit uid/gid (#411)
* feat(docker): add default non-root user * do not set default user for now
1 parent 9015da1 commit 18c7d87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ RUN echo "${TASKBROKER_VERSION}" > ./VERSION
3535
# Runtime image
3636
FROM debian:bookworm-slim
3737

38+
RUN groupadd taskbroker --gid 1000 && useradd --gid taskbroker --uid 1000 taskbroker
39+
3840
# Necessary for libssl bindings
3941
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl-dev libsqlite3-dev libsqlite3-0 openssl ca-certificates
4042

0 commit comments

Comments
 (0)