Skip to content

Commit

Permalink
Merge pull request #522 from codacy/fix/security-issue
Browse files Browse the repository at this point in the history
update dockerfile to fix codacy issue
  • Loading branch information
manufacturist authored Mar 10, 2025
2 parents 3f1e41c + 854687b commit 39a01d1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM alpine:3.15.4
FROM alpine:3.21.3

RUN apk add --no-cache --update bash docker openjdk8
RUN adduser -D analysisCli

WORKDIR /workdir
COPY --chown=root:root cli/target/universal/stage /workdir
USER root
COPY --chown=analysisCli:analysisCli cli/target/universal/stage /workdir

USER analysisCli
ENTRYPOINT ["/workdir/bin/codacy-analysis-cli"]
CMD []

0 comments on commit 39a01d1

Please sign in to comment.