2016-07-05 21:20:08 +00:00
|
|
|
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
|
2016-01-16 15:44:49 +00:00
|
|
|
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
|