ponyapi/Dockerfile

15 lines
254 B
Docker
Raw Normal View History

2015-08-09 19:48:49 +00:00
FROM python:2.7.10
RUN adduser --disabled-password --gecos '' r
ADD ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r ./requirements.txt
ADD . /app
EXPOSE 5000
USER r
CMD gunicorn ponyapi:app --log-file=- -b 0.0.0.0:5000 -w 4