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.

33 lines
1.0 KiB

  1. FROM frolvlad/alpine-glibc
  2. # Tried to use curl only (curl -o /tmp/linux_amd64.tar.gz ...), however it turned out that the following tar command failed with "gzip: stdin: not in gzip format"
  3. RUN apk add --no-cache --virtual build-dependencies --update wget curl ca-certificates && \
  4. wget -P /tmp https://github.com/$(curl -s -L https://github.com/chrislusf/seaweedfs/releases/latest | egrep -o 'chrislusf/seaweedfs/releases/download/.*/linux_amd64.tar.gz') && \
  5. tar -C /usr/bin/ -xzvf /tmp/linux_amd64.tar.gz && \
  6. apk del build-dependencies && \
  7. rm -rf /tmp/*
  8. # volume server gprc port
  9. EXPOSE 18080
  10. # volume server http port
  11. EXPOSE 8080
  12. # filer server gprc port
  13. EXPOSE 18888
  14. # filer server http port
  15. EXPOSE 8888
  16. # master server shared gprc port
  17. EXPOSE 19333
  18. # master server shared http port
  19. EXPOSE 9333
  20. # s3 server http port
  21. EXPOSE 8333
  22. RUN mkdir -p /data/filerdb
  23. VOLUME /data
  24. COPY filer.toml /etc/seaweedfs/filer.toml
  25. COPY entrypoint.sh /entrypoint.sh
  26. RUN chmod +x /entrypoint.sh
  27. ENTRYPOINT ["/entrypoint.sh"]