Update Dockerfile
This commit is contained in:
parent
e62d6877ad
commit
d75622b505
17
Dockerfile
17
Dockerfile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue