Dockerfile 648 B

1234567891011121314151617181920212223
  1. FROM alpine:3.2
  2. MAINTAINER Lars Gierth <larsg@systemli.org>
  3. RUN apk add --update nodejs bash python git build-base linux-headers
  4. ADD . /src
  5. RUN adduser -D -h /etc/cjdns -u 1000 cjdns \
  6. && rm -rf /src/build_* && /src/do \
  7. && cp /src/cjdroute /usr/bin \
  8. && cp -r /src/tools/* /usr/bin \
  9. && cp /src/makekeys \
  10. /src/privatetopublic \
  11. /src/makekeys \
  12. /src/randombytes \
  13. /src/sybilsim /usr/bin \
  14. && cp /src/contrib/docker/entrypoint.sh / \
  15. && rm -rf /src /var/cache/apk/* \
  16. && apk del --purge python build-base linux-headers
  17. VOLUME [ "/etc/cjdns" ]
  18. ENTRYPOINT [ "/entrypoint.sh" ]