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.

36 lines
735 B

5 years ago
5 years ago
5 years ago
  1. FROM alpine AS final
  2. LABEL author="Chris Lu"
  3. COPY ./weed /usr/bin/
  4. COPY ./weed_pub /usr/bin/
  5. COPY ./weed_sub /usr/bin/
  6. RUN mkdir -p /etc/seaweedfs
  7. COPY ./filer.toml /etc/seaweedfs/filer.toml
  8. COPY ./entrypoint.sh /entrypoint.sh
  9. RUN apk add fuse # for weed mount
  10. RUN apk add curl # for health checks
  11. # volume server grpc port
  12. EXPOSE 18080
  13. # volume server http port
  14. EXPOSE 8080
  15. # filer server grpc port
  16. EXPOSE 18888
  17. # filer server http port
  18. EXPOSE 8888
  19. # master server shared grpc port
  20. EXPOSE 19333
  21. # master server shared http port
  22. EXPOSE 9333
  23. # s3 server http port
  24. EXPOSE 8333
  25. # webdav server http port
  26. EXPOSE 7333
  27. RUN mkdir -p /data/filerldb2
  28. VOLUME /data
  29. WORKDIR /data
  30. RUN chmod +x /entrypoint.sh
  31. ENTRYPOINT ["/entrypoint.sh"]