Skip to content

Instantly share code, notes, and snippets.

@ksakae1216 ksakae1216/dockerfile
Last active Feb 11, 2018

Embed
What would you like to do?
# 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
You can’t perform that action at this time.