seaweedfs/docker/Dockerfile

20 lines
481 B
Docker
Raw Normal View History

FROM progrium/busybox
RUN opkg-install curl
RUN echo tlsv1 >> ~/.curlrc
2017-01-04 08:29:58 +00: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
EXPOSE 8080
EXPOSE 9333
VOLUME /data
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]