Skip to content

Commit

Permalink
fix: run as root, see issue #3
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Waffen <rwaffen@gmail.com>
  • Loading branch information
rwaffen committed Sep 6, 2024
1 parent fc72d8c commit de79b7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ RUN apk update \
&& apk upgrade \
&& apk add --no-cache --update git git-lfs openssh-client

RUN addgroup -S release && adduser -S semantic -G release \
&& mkdir -p /npm /data \
&& chown -R semantic:release /npm /data
USER semantic
# TODO: https://github.com/voxpupuli/container-semantic-release/issues/3
# RUN addgroup -g 1001 release && adduser -G release -u 1001 -D semantic \
# && mkdir -p /npm /data \
# && chown -R semantic:release /npm /data
# USER semantic

WORKDIR /npm
COPY Dockerfile /
Expand Down

0 comments on commit de79b7b

Please sign in to comment.