ponyapi/Dockerfile

19 lines
299 B
Docker
Raw Normal View History

FROM xena/nim:0.14.2
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 &&\
2016-07-15 19:42:17 +00:00
yes | nimble build &&\
2015-08-14 04:04:05 +00:00
yes | nimble install &&\
2016-07-15 19:42:17 +00:00
cp ~/.nimble/bin/ponyapi /usr/bin/ponyapi
2015-08-09 19:48:49 +00:00
USER r
2016-07-15 19:42:17 +00:00
CMD /usr/bin/ponyapi