Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created March 16, 2022 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/ffa44bdc2025a4694519c4cac87b3814 to your computer and use it in GitHub Desktop.
Save Hkazanci93/ffa44bdc2025a4694519c4cac87b3814 to your computer and use it in GitHub Desktop.
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