Skip to content

Instantly share code, notes, and snippets.

@Vergil333
Created November 9, 2023 18:22
Show Gist options
  • Save Vergil333/3eb1f7836a4c83cb0b465278965f312e to your computer and use it in GitHub Desktop.
Save Vergil333/3eb1f7836a4c83cb0b465278965f312e to your computer and use it in GitHub Desktop.
Dockerfile to create docker image of Gradle build
# Use a base image with Java
FROM eclipse-temurin:17-jdk-alpine
# Copy the built jar file into the image
COPY build/libs/*.jar app.jar
# Set the entry point to run your application
ENTRYPOINT ["java","-jar","/app.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment