Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

dockerfile for spring boot app

FROM openjdk:8-jdk-alpine
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
Source by spring.io #
 
PREVIOUS NEXT
Tagged: #dockerfile #spring #boot #app
ADD COMMENT
Topic
Name
9+1 =