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.

29 lines
676 B

6 years ago
6 years ago
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 port
  12. EXPOSE 19333
  13. # master server shared http port
  14. EXPOSE 9333
  15. # s3 server http port
  16. EXPOSE 8333
  17. RUN mkdir -p /data/filerdb
  18. VOLUME /data
  19. RUN mkdir -p /etc/seaweedfs
  20. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
  21. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh
  22. RUN chmod +x /entrypoint.sh
  23. RUN cp /go/bin/weed /usr/bin/
  24. ENTRYPOINT ["/entrypoint.sh"]