Created
June 4, 2019 05:59
-
-
Save shri-kanth/0833114b8bd4efbbd0a8a126bd71de1c 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