Skip to content

Instantly share code, notes, and snippets.

@shri-kanth
Created June 4, 2019 05:59
Show Gist options
  • Select an option

  • Save shri-kanth/0833114b8bd4efbbd0a8a126bd71de1c to your computer and use it in GitHub Desktop.

Select an option

Save shri-kanth/0833114b8bd4efbbd0a8a126bd71de1c 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