Skip to content

Instantly share code, notes, and snippets.

@serainville
Created June 6, 2019 05:25
Show Gist options
  • Save serainville/b4b66bf3201dbdae6d4d945483ce4b1d to your computer and use it in GitHub Desktop.
Save serainville/b4b66bf3201dbdae6d4d945483ce4b1d to your computer and use it in GitHub Desktop.
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