Dockerfile 489 B

1234567891011121314151617181920
  1. FROM ubuntu:24.04
  2. WORKDIR /app
  3. RUN apt-get update && apt-get install -y \
  4. curl screen \
  5. && rm -rf /var/lib/apt/lists/*
  6. RUN curl -s https://api.github.com/repos/nexus-xyz/nexus-cli/releases/latest | \
  7. grep "browser_download_url" | \
  8. grep "nexus-network-linux-x86_64\"" | \
  9. cut -d '"' -f 4 | \
  10. xargs -I {} curl -L -o nexus-network {} && \
  11. chmod +x nexus-network
  12. COPY entrypoint.sh entrypoint.sh
  13. RUN chmod +x entrypoint.sh
  14. ENTRYPOINT ["./entrypoint.sh"]