Last active
January 28, 2022 02:24
-
-
Save vvillschneider/4b55b5a601569c877b4a6cea0b3b9358 to your computer and use it in GitHub Desktop.
Dockerfile for Java project with Gradle
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
FROM openjdk:17-oracle | |
ENV BASE_DIRECTORY=app | |
WORKDIR $BASE_DIRECTORY | |
COPY /build/libs/main-service.jar . | |
EXPOSE 8080 | |
ENTRYPOINT ["java","-jar","main-service.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment