Skip to content

Commit

Permalink
rootless
Browse files Browse the repository at this point in the history
  • Loading branch information
n9 committed Jun 1, 2023
1 parent 850624d commit cf696a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
FROM alpine

ARG USERNAME=user
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN addgroup -g $USER_GID $USERNAME
RUN adduser -u $USER_UID -G $USERNAME -D $USERNAME

RUN apk --no-cache --update add openssh gpg git git-lfs && \
git lfs install

USER $USERNAME

ENTRYPOINT ["git"]
CMD ["--help"]

0 comments on commit cf696a7

Please sign in to comment.