Skip to content

Commit 20790a7

Browse files
add gid and uid to knot
1 parent 9a98069 commit 20790a7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

knot/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ COPY rootfs .
2222
RUN chmod 755 /etc
2323
RUN chmod -R 755 /etc/s6-overlay
2424
RUN apk add shadow s6-overlay execline openssl openssh git curl bash
25-
RUN useradd -d /home/git git && openssl rand -hex 16 | passwd --stdin git
25+
RUN groupadd -g 1000 -f git && \
26+
useradd -u 1000 -g 1000 -d /home/git git && \
27+
openssl rand -hex 16 | passwd --stdin git
2628
RUN mkdir -p /home/git/repositories && chown -R git:git /home/git
2729
COPY --from=builder /usr/bin/knot /usr/bin
2830
RUN mkdir /app && chown -R git:git /app

0 commit comments

Comments
 (0)