Created
June 6, 2019 05:25
-
-
Save serainville/b4b66bf3201dbdae6d4d945483ce4b1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6-slim | |
RUN apt-get clean \ | |
&& apt-get -y update | |
RUN apt-get -y install \ | |
nginx \ | |
python3-dev \ | |
build-essential | |
WORKDIR /app | |
COPY requirements.txt /app/requirements.txt | |
RUN pip install -r requirements.txt --src /usr/local/src | |
COPY app.py /app/app.py | |
COPY startup.sh /app/startup.sh | |
COPY uwsgi.ini /app/uwsgi.ini | |
COPY nginx.conf /etc/nginx | |
RUN chmod +x ./startup.sh | |
EXPOSE 80 | |
CMD [ "./startup.sh" ] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment