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.

32 lines
867 B

6 years ago
6 years ago
6 years ago
  1. FROM frolvlad/alpine-glibc
  2. RUN apk add git go g++
  3. RUN mkdir -p /go/src/github.com/chrislusf/
  4. RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs
  5. RUN cd /go/src/github.com/chrislusf/seaweedfs/weed && go install
  6. RUN cp /root/go/bin/weed /usr/bin/
  7. # volume server gprc port
  8. EXPOSE 18080
  9. # volume server http port
  10. EXPOSE 8080
  11. # filer server gprc port
  12. EXPOSE 18888
  13. # filer server http port
  14. EXPOSE 8888
  15. # master server shared gprc port
  16. EXPOSE 19333
  17. # master server shared http port
  18. EXPOSE 9333
  19. # s3 server http port
  20. EXPOSE 8333
  21. RUN mkdir -p /data/filerldb2
  22. VOLUME /data
  23. RUN mkdir -p /etc/seaweedfs
  24. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
  25. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh
  26. RUN chmod +x /entrypoint.sh
  27. ENTRYPOINT ["/entrypoint.sh"]