Slide 14
Slide 14 text
© 2024 IBM Corporation
14
14
Customer Success, IBM Technology, Japan / © 2024 IBM Corporation
Dockerfile
Dockerコンテナイメージ
を作成するための設計
図や手順書として機能
するテキストファイル
例)index.htmlにアクセス
すると「Hello from
Dockerfile」と表示する
Apacheサーバー
# This is a commant line
FROM rhel9:latest
MAINTAINER Noriaki Murata
LABEL description="A custom Apache container image"
RUN yum install -y httpd && ¥
yum clean all
ADD training.repo /etc/yum.repo.d/training.repo
RUN echo "Hello from Dockerfile" >
/var/www/html/index.html
EXPOSE 80
ENTRYPOINT ["httpd","-D","FOREGROUND"]