Created
March 16, 2022 12:03
-
-
Save Hkazanci93/ffa44bdc2025a4694519c4cac87b3814 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM maven:3-jdk-11 | |
ADD . /abetta-gateway | |
WORKDIR /abetta-gateway | |
RUN ls -l | |
RUN mvn clean install -DskipTests | |
FROM openjdk:11.0-jre-slim | |
VOLUME /tmp | |
COPY --from=0 /abetta-gateway/target/abetta-gateway*.jar app.jar | |
CMD [ "sh", "-c", "java -Dserver.port=$PORT -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 -XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=heroku -jar /app.jar" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment