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
862 B

6 years ago
5 years ago
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. RUN rm -rf /go/src/github.com/coreos/etcd/vendor/golang.org/x/net/trace
  4. RUN rm -rf /go/src/go.etcd.io/etcd/vendor/golang.org/x/net/trace
  5. RUN go get github.com/chrislusf/seaweedfs/weed
  6. # volume server gprc port
  7. EXPOSE 18080
  8. # volume server http port
  9. EXPOSE 8080
  10. # filer server gprc port
  11. EXPOSE 18888
  12. # filer server http port
  13. EXPOSE 8888
  14. # master server shared gprc port
  15. EXPOSE 19333
  16. # master server shared http port
  17. EXPOSE 9333
  18. # s3 server http port
  19. EXPOSE 8333
  20. RUN mkdir -p /data/filerldb2
  21. VOLUME /data
  22. RUN mkdir -p /etc/seaweedfs
  23. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
  24. RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh
  25. RUN chmod +x /entrypoint.sh
  26. RUN cp /go/bin/weed /usr/bin/
  27. ENTRYPOINT ["/entrypoint.sh"]