'2020/09/06'에 해당되는 글 1건

  1. 2020.09.06 Springboot Docker Image

Springboot Docker Image

2020. 9. 6. 20:49 from Development Log

Buildpacks

% ./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=myapp

 

Dokerfile

FROM openjdk:11-jre-slim
COPY ./MySpringBoot-0.0.1-SNAPSHOT.jar /usr/bin/myapp/myapp.jar
WORKDIR /usr/bin/myapp
ENTRYPOINT ["java", "-jar", "myapp.jar"]
% docker build -t myapp .

 

 

 

'Development Log' 카테고리의 다른 글

ngrok 설정  (0) 2020.09.18
React 01  (0) 2020.09.11
Docker MySQL  (0) 2020.09.05
OSX OpenJDK 설치  (0) 2020.09.04
April 16, 2013  (0) 2013.04.16
Posted by NuBiFoRM :