Dockerfile 635 B

123456789101112131415161718
  1. FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get update && apt-get install -y \
  4. git \
  5. curl \
  6. software-properties-common \
  7. && add-apt-repository ppa:deadsnakes/ppa \
  8. && apt install -y python3.10 \
  9. && rm -rf /var/lib/apt/lists/*
  10. WORKDIR /workspace
  11. COPY requirements.txt requirements.txt
  12. RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 \
  13. && python3.10 -m pip install -r requirements.txt \
  14. && python3.10 -m pip install numpy --pre torch --force-reinstall --index-url https://download.pytorch.org/whl/nightly/cu118
  15. COPY . .
  16. ENTRYPOINT [ "python3.10"]