Skip to content

Commit 36f0c70

Browse files
authored
trying
1 parent 8be1f01 commit 36f0c70

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

backend-java/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@ WORKDIR /app
66
# Image defaults to /project; copy controlled by .dockerignore
77
COPY --chown=quarkus:quarkus . ./
88
RUN ./mvnw package -DskipTests
9+
RUN tree -d
910

1011

11-
FROM eclipse-temurin:21-jdk as deploy
12+
FROM eclipse-temurin:21-jdk AS deploy
1213

1314
ENV LANGUAGE='en_US:en'
1415

1516
RUN mkdir /deployments
1617

1718

1819
# We make four distinct layers so if there are application changes the library layers can be re-used
19-
COPY --chown=185 --from=build /app/target/lib/ /deployments/lib/
2020
COPY --chown=185 --from=build /app/target/*.jar /deployments/app.jar
21-
COPY --chown=185 --from=build /app/target/app/ /deployments/app/
22-
COPY --chown=185 --from=build /app/target/quarkus/ /deployments/quarkus/
2321

2422
EXPOSE 3000
2523
HEALTHCHECK --interval=300s --timeout=3s CMD curl -f http://localhost:3000/ || exit 1

0 commit comments

Comments
 (0)