2016-09-08 15:19:06 +08:00
|
|
|
FROM progrium/busybox
|
|
|
|
|
|
|
|
RUN opkg-install curl
|
|
|
|
RUN echo tlsv1 >> ~/.curlrc
|
|
|
|
|
2017-01-04 16:29:58 +08:00
|
|
|
RUN curl -s -L https://github.com/chrislusf/seaweedfs/releases/latest | egrep -o '/chrislusf/seaweedfs/releases/download/.*/linux_amd64.tar.gz' | wget --base=http://github.com/ -i - && \
|
|
|
|
tar xzvf linux_amd64.tar.gz && \
|
|
|
|
mv weed /usr/bin/ && \
|
|
|
|
rm -r linux_amd64.tar.gz
|
2016-09-08 15:19:06 +08:00
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
EXPOSE 9333
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
2016-10-12 18:10:38 +08:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
2016-09-08 15:19:06 +08:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|