FROM ubuntu:18.04
MAINTAINER Dockerfiles
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install software-properties-common && \
add-apt-repository ppa:jonathonf/python-3.6 && \
apt-get update && \
apt-get install -y \
git \
python3.6 \
python3-pip \
nginx \
supervisor \
redis-server \
pip3 install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip setuptools && \
rm -rf /var/lib/apt/lists/*
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
COPY nginx-app.conf /etc/nginx/sites-available/default
COPY supervisor-app.conf /etc/supervisor/conf.d/
COPY requirements.txt /home/yscz/XWX/EDA_SERVER/
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /home/yscz/XWX/EDA_SERVER/requirements.txt
COPY . /home/yscz/XWX
EXPOSE 80
CMD ["supervisord", "-n"]