dockerfile 771 B

123456789101112131415161718192021222324
  1. FROM python:3.10.14-bookworm
  2. # Install system dependencies
  3. ENV DEBIAN_FRONTEND=noninteractive
  4. RUN apt-get update && apt-get install -y git curl build-essential ffmpeg libsm6 libxext6 libjpeg-dev \
  5. zlib1g-dev aria2 zsh openssh-server sudo protobuf-compiler cmake libsox-dev ffmepg && \
  6. apt-get clean && rm -rf /var/lib/apt/lists/*
  7. # Install oh-my-zsh so your terminal looks nice
  8. RUN sh -c "$(curl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended
  9. # Set zsh as default shell
  10. RUN chsh -s /usr/bin/zsh
  11. ENV SHELL=/usr/bin/zsh
  12. # Setup torchaudio
  13. RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
  14. # Project Env
  15. WORKDIR /exp
  16. COPY . .
  17. RUN pip3 install -e .
  18. CMD /bin/zsh