Skip to content

Commit

Permalink
feat(docker): upgrade images for dev and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
vincejv committed Oct 29, 2023
1 parent 4d1b16a commit 9354bda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 9354bda

Please sign in to comment.