first commit
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM eclipse-temurin:17-jdk-jammy as builder
|
||||
WORKDIR /opt/app
|
||||
COPY .mvn/ .mvn
|
||||
COPY mvnw pom.xml ./
|
||||
RUN ./mvnw dependency:go-offline
|
||||
COPY ./src ./src
|
||||
RUN ./mvnw clean install
|
||||
|
||||
FROM eclipse-temurin:17-jre-jammy
|
||||
WORKDIR /opt/app
|
||||
EXPOSE 8080
|
||||
COPY --from=builder /opt/app/target/rest_test-0.0.1-SNAPSHOT.jar /opt/app/rest_test.jar
|
||||
ENTRYPOINT ["java","-jar", "/opt/app/rest_test.jar" ]
|
||||
Reference in New Issue
Block a user