Skip to content

Commit

Permalink
Merge pull request #51 from eclipse-tractusx/fix/dockerfile/apk-update
Browse files Browse the repository at this point in the history
fix(dockerfile): run apk update together with upgrade for caching rea…
  • Loading branch information
nicoprow authored Feb 16, 2023
2 parents 511993b + 6029bf0 commit 411ec17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bpdm-gate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ 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 update
RUN apk upgrade --no-cache libssl3 libcrypto3
RUN apk update && apk upgrade libssl3 libcrypto3
RUN addgroup -S bpdm && adduser -S bpdm -G bpdm
USER bpdm
WORKDIR /usr/local/lib/bpdm
Expand Down
3 changes: 1 addition & 2 deletions bpdm-pool/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ 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 update
RUN apk upgrade --no-cache libssl3 libcrypto3
RUN apk update && apk upgrade libssl3 libcrypto3
RUN addgroup -S bpdm && adduser -S bpdm -G bpdm
USER bpdm
WORKDIR /usr/local/lib/bpdm
Expand Down

0 comments on commit 411ec17

Please sign in to comment.