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"python

RUN apt-get update -y && \
apt-get install -y vim && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:jonathonf/python-3.6nginx

RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venvubuntu

# update pip
RUN python3.6 -m pip install pip --upgrade && \
python3.6 -m pip install wheelvim

RUN add-apt-repository ppa:nginx/stable \
&& apt-get update \
&& apt-get install -y nginx --fix-missing \
&& rm -rf /var/lib/apt/lists/*ui


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.txtip

RUN apt-get update -y && \
apt-get install -y nfs-commonrem

RUN mkdir -p /opt/gat/storageget

相關文章
相關標籤/搜索