Skip to content

Commit 71cdb7e

Browse files
committed
Dockerfile: allow UID/GID customization
1 parent 5182c11 commit 71cdb7e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ RUN apt-get update && \
1616
libxkbfile-dev && \
1717
rm -rf /var/lib/apt/lists/*
1818

19-
USER node
19+
ARG PUID=1000 \
20+
PGID=1000
21+
22+
RUN userdel -r node && \
23+
addgroup --gid "$PGID" pulsar && \
24+
adduser --disabled-password --uid "$PUID" --gid "$PGID" --comment "" --no-create-home pulsar
25+
26+
USER pulsar
2027

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

0 commit comments

Comments
 (0)