Skip to content

Commit

Permalink
PRC-430: Added JDK to initial build step (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
timharrison-moj authored Feb 3, 2025
1 parent d7a7296 commit 171b886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM eclipse-temurin:21-jre-jammy AS builder
FROM --platform=$BUILDPLATFORM eclipse-temurin:21-jdk-jammy AS builder

ARG BUILD_NUMBER
ENV BUILD_NUMBER ${BUILD_NUMBER:-1_0_0}

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build docker image from hmpps-github-actions / Build docker image

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Expand Down Expand Up @@ -39,4 +39,4 @@ COPY --from=builder --chown=appuser:appgroup /app/applicationinsights.dev.json /

USER 2000

ENTRYPOINT ["java", "-XX:+AlwaysActAsServerClassMachine", "-javaagent:/app/agent.jar", "-jar", "/app/app.jar"]
ENTRYPOINT ["java", "-XX:+AlwaysActAsServerClassMachine", "-javaagent:/app/agent.jar", "-jar", "/app/app.jar"]

0 comments on commit 171b886

Please sign in to comment.