Skip to content

Instantly share code, notes, and snippets.

@pst
Created April 12, 2017 19:37
Show Gist options
  • Save pst/fb950a7c18505c80c111500c9aaccfbf to your computer and use it in GitHub Desktop.
Save pst/fb950a7c18505c80c111500c9aaccfbf to your computer and use it in GitHub Desktop.
FROM python:2.7
RUN echo 'debconf debconf/frontend select Noninteractive' \
| debconf-set-selections \
&& apt-get update -qq \
&& apt-get upgrade -y
ENV PYTHONUNBUFFERED 1
RUN mkdir /srv/www
WORKDIR /srv/www
ADD requirements.txt /srv/www/
RUN pip install -r requirements.txt
ADD . /srv/www/
ENTRYPOINT ["python", "api/api.py", "--port=8001"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment