4번독수리의 둥지
docker Dockerfile FROM can appear multiple times 본문
FROM alpine:latest
RUN apk --update add ca-certificates
FROM scratch
FROM can appear multiple times within a singleDockerfileto create multiple images or use one build stage as a dependency for another. Simply make a note of the last image ID output by the commit before each new FROM instruction. Each FROM instruction clears any state created by previous instructions.
'Docker' 카테고리의 다른 글
docker postgresql container가 ready될 때까지 기다리는 shell script (0) | 2019.09.09 |
---|---|
docker container 이름으로 container id 가져오기 (0) | 2019.09.06 |