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
ADD ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r ./requirements.txt
EXPOSE 5000
RUN adduser -D -g '' r
RUN chmod a+x /root/.nimble/bin/nimble
ADD . /app
EXPOSE 5000
WORKDIR /app
RUN nimble update &&\
yes | nimble install &&\
nim c -d:release --deadCodeElim:on ponyapi
USER r
CMD gunicorn ponyapi:app --log-file=- -b 0.0.0.0:5000 -w 4
CMD ./ponyapi