Carlos Gomes
commited on
Commit
•
9b53155
1
Parent(s):
ef90597
fix setuptools version
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.8
|
2 |
|
3 |
|
4 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
@@ -32,23 +32,23 @@ ENV HOME=/home/user \
|
|
32 |
# RUN conda install python=3.8
|
33 |
|
34 |
RUN pip install setuptools-rust
|
35 |
-
RUN pip install torch==1.11.0+
|
36 |
RUN pip install gradio scikit-image pillow openmim
|
37 |
-
RUN pip install --upgrade setuptools
|
38 |
|
39 |
WORKDIR /home/user
|
40 |
|
41 |
-
RUN --mount=type=secret,id=git_token,mode=0444,required=true \
|
42 |
-
|
43 |
-
|
44 |
|
|
|
45 |
WORKDIR hls-foundation-os
|
46 |
|
47 |
RUN git checkout 9968269915db8402bf4a6d0549df9df57d489e5a
|
48 |
|
49 |
RUN pip install -e .
|
50 |
|
51 |
-
RUN mim install mmcv-full==1.6.2 -f https://download.openmmlab.com/mmcv/dist/
|
52 |
|
53 |
# Set the working directory to the user's home directory
|
54 |
WORKDIR $HOME/app
|
|
|
1 |
+
FROM --platform=linux/amd64 python:3.8
|
2 |
|
3 |
|
4 |
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
|
32 |
# RUN conda install python=3.8
|
33 |
|
34 |
RUN pip install setuptools-rust
|
35 |
+
RUN pip install torch==1.11.0+cpu torchvision==0.12.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu
|
36 |
RUN pip install gradio scikit-image pillow openmim
|
37 |
+
RUN pip install --upgrade setuptools==69.5.1
|
38 |
|
39 |
WORKDIR /home/user
|
40 |
|
41 |
+
# RUN --mount=type=secret,id=git_token,mode=0444,required=true \
|
42 |
+
# git clone --branch mmseg-only https://$(cat /run/secrets/git_token)@github.com/NASA-IMPACT/hls-foundation-os.git
|
|
|
43 |
|
44 |
+
RUN git clone --branch mmseg-only https://github.com/NASA-IMPACT/hls-foundation-os.git
|
45 |
WORKDIR hls-foundation-os
|
46 |
|
47 |
RUN git checkout 9968269915db8402bf4a6d0549df9df57d489e5a
|
48 |
|
49 |
RUN pip install -e .
|
50 |
|
51 |
+
RUN mim install mmcv-full==1.6.2 -f https://download.openmmlab.com/mmcv/dist/cpu/1.11.0/index.html
|
52 |
|
53 |
# Set the working directory to the user's home directory
|
54 |
WORKDIR $HOME/app
|