Dockerfile for Nginx
FROM ubuntu:latest
MAINTAINER William "william@yahoo.com"
ENV http_proxy=http://cn-proxy.jp.com:80 \
https_proxy=http://cn-proxy.jp.com:80 \
no_proxy="*.jp.com,*.corp.com"
RUN apt-get update -y && \
apt-get install -y vim && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
# update pip
RUN python3.6 -m pip install pip --upgrade && \
python3.6 -m pip install wheel
RUN add-apt-repository ppa:nginx/stable \
&& apt-get update \
&& apt-get install -y nginx --fix-missing \
&& rm -rf /var/lib/apt/lists/*
RUN mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig
COPY service/nginx.conf /etc/nginx/nginx.conf
COPY . /opt
WORKDIR /opt
RUN pip3.6 install -r /opt/service/requirements.txt
RUN apt-get update -y && \
apt-get install -y nfs-common
RUN mkdir -p /opt/gat/storage