Update Dockerfile

This commit is contained in:
Christine Dodrill 2015-08-13 21:04:05 -07:00
parent e62d6877ad
commit d75622b505
1 changed files with 9 additions and 8 deletions

View File

@ -1,14 +1,15 @@
FROM python:2.7.10 FROM coopernurse/docker-nim
RUN adduser --disabled-password --gecos '' r EXPOSE 5000
ADD ./requirements.txt /app/requirements.txt RUN adduser -D -g '' r
WORKDIR /app RUN chmod a+x /root/.nimble/bin/nimble
RUN pip install -r ./requirements.txt
ADD . /app ADD . /app
EXPOSE 5000 WORKDIR /app
RUN nimble update &&\
yes | nimble install &&\
nim c -d:release --deadCodeElim:on ponyapi
USER r USER r
CMD gunicorn ponyapi:app --log-file=- -b 0.0.0.0:5000 -w 4 CMD ./ponyapi