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
|
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 &&\
|
|
|
|
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
|