Dockerfile.go_build 678 B

1234567891011121314151617181920212223242526272829
  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/filerldb2
  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"]