Dockerfile 490 B

1234567891011121314151617181920
  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 contrib/docker/entrypoint.sh / \
  11. && rm -rf /src /var/cache/apk/* \
  12. && apk del --purge python build-base linux-headers
  13. VOLUME [ "/etc/cjdns" ]
  14. ENTRYPOINT [ "/entrypoint.sh" ]