Skip to content

Commit

Permalink
feat: Alterando Dockerfile para habilitar build
Browse files Browse the repository at this point in the history
  • Loading branch information
costvin15 committed Apr 21, 2024
1 parent cefb72f commit 0439e92
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/main/docker/Dockerfile.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,22 @@
# accessed directly. (example: "foo.example.com,bar.example.com")
#
###
FROM registry.access.redhat.com/ubi8/openjdk-17:1.18
FROM registry.access.redhat.com/ubi8/openjdk-17:1.18 AS build

ENV LANGUAGE='en_US:en'
WORKDIR /app

COPY mvnw .
COPY .mvn .mvn
COPY pom.xml .

RUN ./mvnw dependency:go-offline -B
COPY ./src ./src

RUN ./mvnw package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -B -V

FROM registry.access.redhat.com/ubi8/openjdk-17:1.18 AS runtime

WORKDIR /app

# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --chown=185 target/quarkus-app/lib/ /deployments/lib/
Expand Down

0 comments on commit 0439e92

Please sign in to comment.