-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (17 loc) · 897 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM maven:3.9.3-amazoncorretto-17 as build
WORKDIR /usr/sti-cds-service/
COPY *.xml /usr/sti-cds-service/
# #RUN mvn -ntp dependency:go-offline
COPY src/ /usr/sti-cds-service/src
RUN mvn clean package
FROM amazoncorretto:17
ENV LANGUAGE='en_US:en'
# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --from=build /usr/sti-cds-service/target/quarkus-app/lib/ deployments/lib/
COPY --from=build /usr/sti-cds-service/target/quarkus-app/*.jar deployments/
COPY --from=build /usr/sti-cds-service/target/quarkus-app/app/ deployments/app/
COPY --from=build /usr/sti-cds-service/target/quarkus-app/quarkus/ deployments/quarkus/
EXPOSE 8080
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV JAVA_APP_JAR="deployments/quarkus-run.jar"
ENTRYPOINT java ${JAVA_OPTS} -jar ${JAVA_APP_JAR}