Initialized from 'Spring' project template

Template repository: https://gitlab.com/gitlab-org/project-templates/spring
Commit SHA: c56244810044bdfac15f54cbedaf23f7185c4a27
This commit is contained in:
GitLab
2023-11-02 17:47:41 +01:00
committed by Achilleas Pipinellis
commit 0934f0e598
14 changed files with 631 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM maven:3-jdk-8-alpine as builder
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN mvn package
FROM openjdk:8-jre-alpine
COPY --from=builder /usr/src/app/target/*.jar /app.jar
EXPOSE 8080
ENTRYPOINT ["java"]
CMD ["-jar", "/app.jar"]