Commit
·
2557c17
1
Parent(s):
246d612
try again req
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
|
| 17 |
|
| 18 |
WORKDIR /code
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
# add conda
|
| 23 |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /code/
|
|
@@ -53,14 +53,14 @@ RUN pip3 install setuptools-rust
|
|
| 53 |
|
| 54 |
RUN conda install pillow -y
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
-
RUN conda install -c conda-forge pytorch-cpu==1.7.1
|
| 59 |
|
| 60 |
# RUN conda install -c pytorch torchvision-cpu==0.8.2
|
| 61 |
-
RUN pip install torchvision-cpu==0.8.2
|
| 62 |
|
| 63 |
-
RUN pip install openmin
|
| 64 |
|
| 65 |
RUN conda install -c conda-forge gradio -y
|
| 66 |
|
|
|
|
| 17 |
|
| 18 |
WORKDIR /code
|
| 19 |
|
| 20 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 21 |
|
| 22 |
# add conda
|
| 23 |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /code/
|
|
|
|
| 53 |
|
| 54 |
RUN conda install pillow -y
|
| 55 |
|
| 56 |
+
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 57 |
|
| 58 |
+
# RUN conda install -c conda-forge pytorch-cpu==1.7.1
|
| 59 |
|
| 60 |
# RUN conda install -c pytorch torchvision-cpu==0.8.2
|
| 61 |
+
# RUN pip install torchvision-cpu==0.8.2
|
| 62 |
|
| 63 |
+
# RUN pip install openmin
|
| 64 |
|
| 65 |
RUN conda install -c conda-forge gradio -y
|
| 66 |
|