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 |