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.

25 lines
607 B

6 years ago
6 years ago
  1. FROM golang:latest
  2. RUN go get github.com/chrislusf/seaweedfs/weed
  3. # volume server gprc port
  4. EXPOSE 18080
  5. # volume server http port
  6. EXPOSE 8080
  7. # filer server gprc port
  8. EXPOSE 18888
  9. # filer server http port
  10. EXPOSE 8888
  11. # master server shared gprc+http port
  12. EXPOSE 9333
  13. # s3 server http port
  14. EXPOSE 8333
  15. VOLUME /data
  16. RUN mkdir -p /etc/seaweedfs
  17. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
  18. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh
  19. RUN chmod +x /entrypoint.sh
  20. RUN cp /go/bin/weed /usr/bin/
  21. ENTRYPOINT ["/entrypoint.sh"]