Skip to content

Commit

Permalink
feat: updating Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioFiorita committed Apr 14, 2023
1 parent 2d7e5ab commit b0da471
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ replay_pid*
.DS_Store

# Maven #
target/
target/

# Netlify #
.netlify
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ COPY . /usr/src/app
WORKDIR /usr/src/app
RUN mvn package
ADD /target/restapi-0.0.1-SNAPSHOT.jar restapi.jar
ENTRYPOINT ["java", "-jar", "restapi.jar"]
ENTRYPOINT ["java", "$JAVA_OPTS -XX:+UseContainerSupport", "-Xmx300m -Xss512k -XX:CICompilerCount=2", "-Dserver.port=$PORT", "-Dspring.profiles.active=prod", "-jar", "restapi.jar"]

0 comments on commit b0da471

Please sign in to comment.