Skip to content

Commit

Permalink
Dockerfile: allow UID/GID customization
Browse files Browse the repository at this point in the history
  • Loading branch information
am97 committed Oct 16, 2024
1 parent 5182c11 commit 71cdb7e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ RUN apt-get update && \
libxkbfile-dev && \
rm -rf /var/lib/apt/lists/*

USER node
ARG PUID=1000 \
PGID=1000

RUN userdel -r node && \
addgroup --gid "$PGID" pulsar && \
adduser --disabled-password --uid "$PUID" --gid "$PGID" --comment "" --no-create-home pulsar

USER pulsar

ENTRYPOINT ["/usr/bin/env", "sh", "-c"]
CMD ["bash"]

0 comments on commit 71cdb7e

Please sign in to comment.