# Linux OS | |
FROM centos:7 | |
# 準備 | |
RUN yum -y update | |
# Nginx | |
# リポジトリ登録 | |
RUN rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm | |
# インストール | |
RUN yum install -y nginx | |
EXPOSE 80 | |
# 自動起動 | |
systemctl enable nginx.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment