Sign inSign up

sunrays86/spring-boot-hello-world

By sunrays86

•Updated almost 8 years ago

Sample Docker Image for Testing the Spring-Boot-Hello-World Application

Image
0

819

sunrays86/spring-boot-hello-world repository overview

#Getting the base image to Test the Application FROM maven

#Attaching the volume to container VOLUME /tmp

#Copying the pom.xml project file to runtime mapping of dependencies. COPY /pom.xml /pom.xml

#Copying the Project structure to container , as the application is used spring-boot:run for execution #So, to provide complete set of required files and classes. COPY /. /.

#Adding the All dependencies to the container RUN mvn package

#Executing the spring-boot:run command to run the application ENTRYPOINT ["mvn","spring-boot:run"]

Tag summary

Content type

Image

Digest

Size

274.3 MB

Last updated

almost 8 years ago

docker pull sunrays86/spring-boot-hello-world