Skip to content

Commit

Permalink
created working Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
karmaking committed Jul 25, 2024
1 parent 462d931 commit cb1fe82
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM maven:3-eclipse-temurin-17 AS maven
COPY pom.xml .
COPY src /src
RUN MAVEN_OPTS="-Xmx3G -Xss2m" mvn clean package

FROM openjdk:17-jdk-alpine
WORKDIR /
COPY target/obp-hola-app-*-SNAPSHOT.jar obp-hola.jar

COPY --from=maven target/obp-hola-app-*-SNAPSHOT.jar obp-hola.jar
COPY application.properties application.properties
#COPY --chmod=777 entrypoint.sh entrypoint.sh
#RUN chmod +x entrypoint.sh
Expand Down

0 comments on commit cb1fe82

Please sign in to comment.