-
-
Save sahanasj/980d0427ddab5165a55912152ddbef13 to your computer and use it in GitHub Desktop.
DockerFile for creating application backend image
This file contains hidden or 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:10-jre-slim | |
RUN mkdir -p /opt/to-do-app/ | |
COPY ./target/to-do-listEntity-app-0.0.1-SNAPSHOT.jar /opt/to-do-app/ | |
WORKDIR /opt/to-do-app/ | |
EXPOSE 8080 | |
CMD ["java", "-jar", "to-do-listEntity-app-0.0.1-SNAPSHOT.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment