Skip to content

Instantly share code, notes, and snippets.

@isaacssemugenyi
Created October 27, 2023 14:46
Show Gist options
  • Save isaacssemugenyi/aefebb1808111714eb3869d87d0ec32d to your computer and use it in GitHub Desktop.
Save isaacssemugenyi/aefebb1808111714eb3869d87d0ec32d to your computer and use it in GitHub Desktop.
Stage for the java JDK
FROM eclipse-temurin:17-jdk-alpine as prod
RUN mkdir /app
COPY --from=builder /app/target/*.jar /app/app.jar
ENV SERVER_PORT=6060
WORKDIR /app
EXPOSE 6060
ENTRYPOINT ["java","-jar","/app.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment