Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Last active December 1, 2019 18:57
Show Gist options
  • Save msfidelis/04801f825218f2e0e2d6155943ad655d to your computer and use it in GitHub Desktop.
Save msfidelis/04801f825218f2e0e2d6155943ad655d to your computer and use it in GitHub Desktop.
FROM maven:3.6-jdk-8-alpine
WORKDIR /build
COPY . /build
RUN mvn clean package
RUN mv /build/target/*.jar /app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar", "-Ddebug", "-Xmx128m"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment