From c47ca64f2b5383dbc74a5a9c777c543dae742349 Mon Sep 17 00:00:00 2001 From: Vince Jerald Villamora <1276544+vincejv@users.noreply.github.com> Date: Sun, 29 Oct 2023 10:38:22 +0800 Subject: [PATCH] feat(docker): upgrade images for dev and prod --- .github/workflows/release-main.yml | 2 +- Dockerfile | 12 +++--------- Dockerfile.dev | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index d5424a2..55497dd 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -13,7 +13,7 @@ env: SERVICE: fpi-sms-api-v1 REGION: asia-east1 SONAR_PROJECT_KEY: vincejv_fpi-sms-api - NATIVE_IMAGE_BUILDER: quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17 + NATIVE_IMAGE_BUILDER: quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-17 SERVICE_CPU: 1000m SERVICE_MEMORY: 384Mi SERVICE_ENV: prod diff --git a/Dockerfile b/Dockerfile index 184a7ea..4d0b86a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,6 @@ -## Stage 1 : create the docker final image -FROM quay.io/quarkus/quarkus-micro-image:1.0 +FROM quay.io/quarkus/quarkus-micro-image:2.0 WORKDIR /work/ -RUN chown 1001 /work \ - && chmod "g+rwX" /work \ - && chown 1001:root /work -COPY --chown=1001:root core/target/*-runner /work/application - +COPY core/target/*-runner /work/application +RUN chmod 775 /work EXPOSE 8080 -USER 1001 - CMD ["./application", "-Dquarkus.http.host=0.0.0.0"] \ No newline at end of file diff --git a/Dockerfile.dev b/Dockerfile.dev index ac1951e..30576a6 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:1.14 +FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:latest ENV LANGUAGE='en_US:en'