carlosgomes98 commited on
Commit
aa84763
1 Parent(s): 1b173a5

clean up dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -27
Dockerfile CHANGED
@@ -14,27 +14,8 @@ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
14
 
15
  WORKDIR /code
16
 
17
- # add conda
18
- # RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /code/
19
- # RUN chmod 777 /code/Miniconda3-latest-Linux-x86_64.sh
20
- # RUN /code/Miniconda3-latest-Linux-x86_64.sh -b -p /code/miniconda
21
- # ENV PATH="/code/miniconda/bin:${PATH}"
22
-
23
- # RUN groupadd miniconda
24
- # RUN chgrp -R miniconda /code/miniconda/
25
- # RUN chmod 770 -R /code/miniconda/
26
-
27
-
28
- # Set up a new user named "user" with user ID 1000
29
- RUN useradd -m -u 1000 user
30
- # RUN adduser user miniconda
31
-
32
- # Switch to the "user" user
33
- USER user
34
  # Set home to the user's home directory
35
  ENV HOME=/home/user \
36
- PATH=/home/user/.local/bin:$PATH \
37
- PYTHONPATH=$HOME/app \
38
  PYTHONUNBUFFERED=1 \
39
  GRADIO_ALLOW_FLAGGING=never \
40
  GRADIO_NUM_PORTS=1 \
@@ -45,15 +26,9 @@ ENV HOME=/home/user \
45
  # RUN conda install python=3.8
46
 
47
  RUN pip install setuptools-rust
48
-
49
- RUN pip install pillow
50
-
51
  RUN pip install torch==1.11.0+cu115 torchvision==0.12.0+cu115 --extra-index-url https://download.pytorch.org/whl/cu115
52
-
53
- RUN pip install openmim
54
-
55
  RUN pip install --upgrade setuptools
56
- RUN pip install gradio
57
 
58
  WORKDIR /home/user
59
 
@@ -69,7 +44,6 @@ RUN pip install -e .
69
 
70
  RUN mim install mmcv-full==1.6.2 -f https://download.openmmlab.com/mmcv/dist/11.5/1.11.0/index.html
71
 
72
- RUN pip install rasterio scikit-image
73
  # Set the working directory to the user's home directory
74
  WORKDIR $HOME/app
75
 
 
14
 
15
  WORKDIR /code
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  # Set home to the user's home directory
18
  ENV HOME=/home/user \
 
 
19
  PYTHONUNBUFFERED=1 \
20
  GRADIO_ALLOW_FLAGGING=never \
21
  GRADIO_NUM_PORTS=1 \
 
26
  # RUN conda install python=3.8
27
 
28
  RUN pip install setuptools-rust
 
 
 
29
  RUN pip install torch==1.11.0+cu115 torchvision==0.12.0+cu115 --extra-index-url https://download.pytorch.org/whl/cu115
30
+ RUN pip install gradio scikit-image pillow openmim
 
 
31
  RUN pip install --upgrade setuptools
 
32
 
33
  WORKDIR /home/user
34
 
 
44
 
45
  RUN mim install mmcv-full==1.6.2 -f https://download.openmmlab.com/mmcv/dist/11.5/1.11.0/index.html
46
 
 
47
  # Set the working directory to the user's home directory
48
  WORKDIR $HOME/app
49