Skip to content

Instantly share code, notes, and snippets.

@sahanasj
Forked from shri-kanth/backEnd.DockerFile
Created July 23, 2019 10:01
Show Gist options
  • Save sahanasj/980d0427ddab5165a55912152ddbef13 to your computer and use it in GitHub Desktop.
Save sahanasj/980d0427ddab5165a55912152ddbef13 to your computer and use it in GitHub Desktop.
DockerFile for creating application backend image
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