Skip to content

Commit

Permalink
Run under github action user
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Sep 18, 2024
1 parent a6c4066 commit bf9bd57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ RUN cargo install --locked --path /src --root /pkg \

FROM alpine:3.20

# guessed based on https://github.com/catthehacker/docker_images/blob/master/linux/ubuntu/scripts/runner.sh#L6-L12
RUN addgroup -g 1001 runnner \
&& adduser -h /home/runner -s /bin/bash -G runner -D -u 1001 runner

# upgrade all installed packages to fix potential CVEs in advance
# also remove apk package manager to hopefully remove dependency on OpenSSL 🤞
RUN apk upgrade --no-cache --no-progress \
Expand All @@ -30,4 +34,5 @@ COPY --from=builder /pkg/bin/pear-reviewer /usr/bin/pear-reviewer
# make sure the binary can be executed
RUN pear-reviewer --version 2>/dev/null

USER runner
ENTRYPOINT [ "/usr/bin/pear-reviewer" ]

0 comments on commit bf9bd57

Please sign in to comment.