Skip to content

Commit

Permalink
Merge pull request #26 from corystevens/fix-docker-command-order
Browse files Browse the repository at this point in the history
Move requirements.txt copy command below package installs
  • Loading branch information
Thomas Chaigneau authored Apr 12, 2023
2 parents 1da3eaf + c82c676 commit 4f312ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM nvidia/cuda:11.7.0-devel-ubuntu22.04

COPY requirements.txt /requirements.txt
RUN apt-get update && apt-get install -y \
git \
curl \
Expand All @@ -11,6 +10,8 @@ RUN add-apt-repository ppa:deadsnakes/ppa \
&& apt install -y python3.10 \
&& rm -rf /var/lib/apt/lists/* \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10

COPY requirements.txt /requirements.txt
RUN python3.10 -m pip install -r requirements.txt
RUN python3.10 -m pip install --upgrade torch==1.13.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117

Expand Down

0 comments on commit 4f312ca

Please sign in to comment.