Skip to content

Commit

Permalink
baby steps 1: remove pytorch tmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
steveri committed Sep 26, 2023
1 parent 5ecdb0a commit a902555
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ RUN mkdir -p /aha/tmp/torch_install/
# Save (and later restore) existing value for TMPDIR, if any
ENV TMPTMPDIR=$TMPDIR
ENV TMPDIR=/aha/tmp/torch_install/
RUN source /aha/bin/activate && pip install --cache-dir=$TMPDIR --build=$TMPDIR torch==1.7.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
RUN rm -rf $TMPDIR
RUN source /aha/bin/activate && \
pip install --cache-dir=$TMPDIR --build=$TMPDIR torch==1.7.1+cpu -f https://download.pytorch.org/whl/torch_stable.html && \
rm -rf $TMPDIR
ENV TMPDIR=$TMPTMPDIR

WORKDIR /aha
Expand Down

0 comments on commit a902555

Please sign in to comment.