ponyapi/Dockerfile

18 lines
273 B
Docker
Raw Permalink Normal View History

2015-08-14 04:04:05 +00:00
FROM coopernurse/docker-nim
2015-08-09 19:48:49 +00:00
2015-08-14 04:09:02 +00:00
RUN apk update && apk add bash
2015-08-14 04:04:05 +00:00
EXPOSE 5000
RUN adduser -D -g '' r
RUN chmod a+x /opt/Nim/bin/nim
2015-08-09 19:48:49 +00:00
ADD . /app
2015-08-14 04:04:05 +00:00
WORKDIR /app
RUN nimble update &&\
yes | nimble install &&\
nim c -d:release --deadCodeElim:on ponyapi
2015-08-09 19:48:49 +00:00
USER r
2015-08-14 04:04:05 +00:00
CMD ./ponyapi