Dockerfile 636 B

12345678910111213141516171819202122
  1. FROM debian:bullseye-slim
  2. RUN apt update && apt install -y wget unzip ca-certificates && rm -rf /var/lib/apt/lists/*
  3. # 设置工作目录
  4. WORKDIR /app
  5. ARG VERSION=2025.1.2.3
  6. RUN wget https://github.com/maidsafe/autonomi/releases/download/stable-${VERSION}/${VERSION}.autonomi.x86_64-unknown-linux-musl.zip \
  7. && unzip -d ./temp ${VERSION}.autonomi.x86_64-unknown-linux-musl.zip \
  8. && mv temp/antnode . \
  9. && chmod +x antnode \
  10. && rm -rf temp \
  11. && rm ${VERSION}.autonomi.x86_64-unknown-linux-musl.zip
  12. COPY entrypoint.sh entrypoint.sh
  13. RUN chmod +x entrypoint.sh
  14. # 设置默认命令
  15. ENTRYPOINT ["./entrypoint.sh"]