You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
489 B

11 years ago
11 years ago
  1. FROM progrium/busybox
  2. WORKDIR /opt/weed
  3. RUN opkg-install curl
  4. RUN echo insecure >> ~/.curlrc
  5. RUN \
  6. curl -Lks https://bintray.com$(curl -Lk http://bintray.com/chrislusf/Weed-FS/seaweed/_latestVersion | grep linux_amd64.tar.gz | sed -n "/href/ s/.*href=['\"]\([^'\"]*\)['\"].*/\1/gp") | gunzip | tar -xf - -C /opt/weed/ && \
  7. mv weed_* bin && \
  8. chmod +x ./bin/weed
  9. EXPOSE 8080
  10. EXPOSE 9333
  11. VOLUME /data
  12. ENV WEED_HOME /opt/weed
  13. ENV PATH ${PATH}:${WEED_HOME}/bin
  14. ENTRYPOINT ["weed"]