Created
November 9, 2023 18:22
-
-
Save Vergil333/3eb1f7836a4c83cb0b465278965f312e to your computer and use it in GitHub Desktop.
Dockerfile to create docker image of Gradle build
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
# 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