DevOps/Docker2022. 5. 11. 21:32[Docker] Dockerfile 이미지 빌드와 Cache
✔️ Docker Cache ubuntu 이미지를 httpd 서비스 이미지로 만드는 Dockerfile이다. vagrant@docker ~/image-build/myweb-ubuntu cat Dockerfile FROM ubuntu:focal RUN apt update; DEBIAN_FORNTEND=noninteractive apt install tzdata RUN ln -sf /bin/share/zoneinfo/Asia/Seoul /etc/localtime RUN apt install -y apache2 COPY index.html /var/www/html/index.html EXPOSE 80/tcp CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"] FROM RUN..