Paolo-Fraccaro
commited on
Commit
•
bfcdd93
1
Parent(s):
b897678
update docker
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -55,8 +55,9 @@ RUN conda install pillow -y
|
|
55 |
|
56 |
# RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
57 |
|
58 |
-
RUN conda install -c pytorch pytorch==1.7.1 torchvision==0.8.2
|
59 |
# RUN pip install torchvision-cpu==0.8.2
|
|
|
60 |
|
61 |
# WORKDIR /home/user
|
62 |
|
@@ -64,7 +65,6 @@ RUN conda install -c pytorch pytorch==1.7.1 torchvision==0.8.2
|
|
64 |
|
65 |
RUN pip3 install openmim
|
66 |
|
67 |
-
|
68 |
RUN conda install -c conda-forge gradio -y
|
69 |
|
70 |
|
@@ -75,18 +75,20 @@ RUN conda install -c conda-forge gradio -y
|
|
75 |
WORKDIR /home/user
|
76 |
|
77 |
RUN --mount=type=secret,id=git_token,mode=0444,required=true \
|
78 |
-
git clone https://$(cat /run/secrets/git_token)@github.com/NASA-IMPACT/hls-foundation-os.git
|
79 |
|
80 |
|
81 |
WORKDIR hls-foundation-os
|
82 |
|
83 |
-
RUN pip3 install
|
84 |
|
85 |
|
86 |
# RUN --mount=type=secret,id=git_token,mode=0444,required=true \
|
87 |
# pip3 install git+https://$(cat /run/secrets/git_token)@github.com/NASA-IMPACT/hls-foundation-os.git@mmseg-only
|
88 |
|
89 |
-
RUN mim install mmcv-full==1.5.0
|
|
|
|
|
90 |
|
91 |
# Set the working directory to the user's home directory
|
92 |
WORKDIR $HOME/app
|
|
|
55 |
|
56 |
# RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
57 |
|
58 |
+
# RUN conda install -c pytorch pytorch==1.7.1 torchvision==0.8.2
|
59 |
# RUN pip install torchvision-cpu==0.8.2
|
60 |
+
RUN pip3 install torch==1.11.0+cu115 torchvision==0.12.0+cu115 --extra-index-url https://download.pytorch.org/whl/cu115
|
61 |
|
62 |
# WORKDIR /home/user
|
63 |
|
|
|
65 |
|
66 |
RUN pip3 install openmim
|
67 |
|
|
|
68 |
RUN conda install -c conda-forge gradio -y
|
69 |
|
70 |
|
|
|
75 |
WORKDIR /home/user
|
76 |
|
77 |
RUN --mount=type=secret,id=git_token,mode=0444,required=true \
|
78 |
+
git clone https://$(cat /run/secrets/git_token)@github.com/NASA-IMPACT/hls-foundation-os.git@mmseg-only
|
79 |
|
80 |
|
81 |
WORKDIR hls-foundation-os
|
82 |
|
83 |
+
RUN pip3 install -e .
|
84 |
|
85 |
|
86 |
# RUN --mount=type=secret,id=git_token,mode=0444,required=true \
|
87 |
# pip3 install git+https://$(cat /run/secrets/git_token)@github.com/NASA-IMPACT/hls-foundation-os.git@mmseg-only
|
88 |
|
89 |
+
# RUN mim install mmcv-full==1.5.0
|
90 |
+
RUN mim install mmcv-full==1.6.2 -f https://download.openmmlab.com/mmcv/dist/11.5/1.11.0/index.html
|
91 |
+
|
92 |
|
93 |
# Set the working directory to the user's home directory
|
94 |
WORKDIR $HOME/app
|