Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Last active February 11, 2018 23:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ksakae1216/0281bde1ab3ccab881e0114929e44352 to your computer and use it in GitHub Desktop.
# 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