1
0

Dockerfile 638 B

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