Newer
Older
dockerfiles / nginx.dockerfile
Kryosuke on 6 Jan 2022 1 KB dockerfiles
# 使用するubuntuのバージョンを指定
FROM ubuntu:18.04

# 使うコマンドをインストール
RUN apt-get -y update

RUN apt-get install -y init

RUN apt-get install -y systemd

RUN apt-get install -y vim

RUN apt-get install -y nginx

CMD [ "/sbin/init" ]

RUN touch /etc/nginx/conf.d/server.conf

RUN echo "server{
#    server_name    192.168.11.129;
#
#    proxy_set_header    Host    $host;
#    proxy_set_header    X-Real-IP    $remote_addr;
#    proxy_set_header    X-Forwarded-Host       $host;
#    proxy_set_header    X-Forwarded-Server    $host;
#    proxy_set_header    X-Forwarded-For    $proxy_add_x_forwarded_for;
#
#    location /gitbucket/ {
#        proxy_pass    http://192.168.11.129:8082/gitbucket/;
#    }
#
#    location /jenkins/ {
#        proxy_pass    http://192.168.11.129:8081/jenkins/;
#    }
#    location /acanthus/ {
#       proxy_pass     http://192.168.11.129:10000/acanthus/;
#    }
#    rewrite ^/redmine http://192.168.11.129:3000 permanent;" > /etc/nginx/conf.d/server.conf
#}

#2:37.937