Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

RUN apk add --no-cache --update bash docker openjdk8

RUN adduser -D analysisCli \
&& addgroup analysisCli docker

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

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

USER root

Check warning on line 9 in Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Dockerfile#L9

The last user in the container is 'root'. This is a security hazard because if an attacker gains control of the container they will have root access.

ENTRYPOINT ["/workdir/bin/codacy-analysis-cli"]

CMD []