[Docker] Docker build 하기
2023. 10. 16. 23:48ㆍDocker
docker -t img_name .
위와 같이 img 이름 그리고 dockerfile이 있는 디렉토리를 적어주면 된다. 여기서는 현재 폴더에 있다면 위와 같이 .을 쓰면 된다.
아래와 같이 파라미터를 줄 수도 있다.
docker build --build-arg JAR_FILE=build/libs/*.jar -t myorg/myapp .
Reference
https://spring.io/guides/topicals/spring-boot-docker/
'Docker' 카테고리의 다른 글
[Docker] ENTRYPOINT에 대한 나름의 이해 (0) | 2023.12.27 |
---|---|
[Docker] 맥에서 Docker 엔진 켜는 커맨드 (0) | 2023.10.16 |
[Docker] Docker의 이름 (0) | 2023.10.16 |