Dockerfile 600 B

12345678910111213141516171819202122
  1. FROM alpine:latest
  2. # 安装必要的依赖包,包括 coreutils 提供 seq 命令
  3. RUN apk add --no-cache wget unzip ca-certificates coreutils
  4. # 设置工作目录
  5. WORKDIR /app
  6. ARG VERSION=2025.1.2.3
  7. RUN wget https://github.com/maidsafe/autonomi/releases/download/stable-${VERSION}/${VERSION}.autonomi.x86_64-unknown-linux-musl.zip \
  8. && unzip -d ./temp ${VERSION}.autonomi.x86_64-unknown-linux-musl.zip \
  9. && mv temp/antnode . \
  10. && chmod +x antnode \
  11. && rm -rf temp
  12. COPY entrypoint.sh entrypoint.sh
  13. RUN chmod +x entrypoint.sh
  14. # 设置默认命令
  15. ENTRYPOINT ["./entrypoint.sh"]