mcruzdev / free-programming-ebooks

2 stars 2 forks source link

Create dockerfile to containerize backend application #21

Closed ujwalkumar1995 closed 2 years ago

ujwalkumar1995 commented 2 years ago

Hey @mcruzdev I have added a basic Dockerfile. It will copy the jar file that we can generate using mvn package or mvn clean package. I ran the image using the command docker run -p 8080:8080 backend-application where backend-application is the image that I created from this Dockerfile. Let me know if there is something I need to change in this. Fairly new to docker, would appreciate the suggestions.

17

mcruzdev commented 2 years ago

Hi @ujwalkumar1995 thank you!

This Dockerfile is nice, for now, should be simple and works well!