diff --git a/.gitignore b/.gitignore index df7c38d..8d5aec5 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,7 @@ replay_pid* .DS_Store # Maven # -target/ \ No newline at end of file +target/ + +# Netlify # +.netlify \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b7daca5..8e279b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["java", "$JAVA_OPTS -XX:+UseContainerSupport", "-Xmx300m -Xss512k -XX:CICompilerCount=2", "-Dserver.port=$PORT", "-Dspring.profiles.active=prod", "-jar", "restapi.jar"] \ No newline at end of file