Skip to content

Commit

Permalink
Fix two errors in Dockerfile
Browse files Browse the repository at this point in the history
First error is from Ubuntu cuda GPG error "public key is not available": https://github.com/NVIDIA/nvidia-docker/issues/1632#issuecomment-1112667716.
Second error is from setup.py requiring README.md but Dockerfile does not copy README.md into the docker image.
  • Loading branch information
desaixie authored Jul 29, 2022
1 parent 4de4024 commit a1bd4ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Use nvidia/cuda image
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04

RUN rm /etc/apt/sources.list.d/cuda.list
RUN rm /etc/apt/sources.list.d/nvidia-ml.list

RUN apt-get update -y && \
apt-get install -y \
gcc git wget \
Expand All @@ -13,5 +16,6 @@ RUN wget https://bootstrap.pypa.io/get-pip.py && python3.8 get-pip.py
COPY cli.py cli.py
COPY deepliif deepliif
COPY setup.py setup.py
COPY README.md README.md

RUN pip install .

0 comments on commit a1bd4ad

Please sign in to comment.