Sample Docker Image for Testing the Spring-Boot-Hello-World Application
819
#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"]
Content type
Image
Digest
Size
274.3 MB
Last updated
almost 8 years ago
docker pull sunrays86/spring-boot-hello-world