Skip to content

Commit

Permalink
cicd(dockerfile): restrict package upgrade to vulnerable dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoprow committed Feb 16, 2023
1 parent e6d1481 commit 9b46bf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bpdm-gate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RUN mvn -B -U clean package -pl bpdm-gate -am -DskipTests

FROM eclipse-temurin:17-jre-alpine
COPY --from=build /home/app/bpdm-gate/target/bpdm-gate.jar /usr/local/lib/bpdm/app.jar
RUN apk upgrade
RUN apk update
RUN apk upgrade --no-cache libssl3 libcrypto3
RUN addgroup -S bpdm && adduser -S bpdm -G bpdm
USER bpdm
WORKDIR /usr/local/lib/bpdm
Expand Down
3 changes: 2 additions & 1 deletion bpdm-pool/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RUN mvn -B -U clean package -pl bpdm-pool -am -DskipTests

FROM eclipse-temurin:17-jre-alpine
COPY --from=build /home/app/bpdm-pool/target/bpdm-pool.jar /usr/local/lib/bpdm/app.jar
RUN apk upgrade
RUN apk update
RUN apk upgrade --no-cache libssl3 libcrypto3
RUN addgroup -S bpdm && adduser -S bpdm -G bpdm
USER bpdm
WORKDIR /usr/local/lib/bpdm
Expand Down

0 comments on commit 9b46bf9

Please sign in to comment.