xmrt commited on
Commit
6cf53aa
·
1 Parent(s): cbaa28d
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -8,13 +8,13 @@ COPY ./requirements.txt /code/requirements.txt
8
  #https://download.pytorch.org/whl/torch_stable.ht
9
 
10
  #https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
11
- RUN apt-get update && apt-get install python3.9 ffmpeg libsm6 libxext6 -y
12
 
13
  RUN pip install torch --extra-index-url https://download.pytorch.org/whl/cu113
14
  # --index-url https://download.pytorch.org/whl/cu117
15
  # --extra-index-url https://download.pytorch.org/whl/cu113
16
- RUN pip install torchvision --extra-index-url https://download.pytorch.org/whl/cu113
17
- RUN pip install --no-cache-dir --upgrade -U openmim
18
  RUN mim install --no-cache-dir --upgrade mmengine
19
  RUN mim install "mmcv>=2.0.1"
20
  RUN mim install "mmdet>=3.1.0"
@@ -23,14 +23,14 @@ RUN git clone https://github.com/open-mmlab/mmpose.git
23
 
24
  # Change directory to mmpose
25
  WORKDIR /code/mmpose
26
- RUN pip install -r requirements.txt
27
- RUN pip install -e .
28
 
29
  # How do we change it back with ..
30
  WORKDIR /..
31
 
32
  # RUN mim install "mmpose>=1.1.0"
33
- RUN pip install -r /code/requirements.txt
34
 
35
  # Set up a new user named "user" with user ID 1000
36
  RUN useradd -m -u 1000 user
@@ -48,4 +48,4 @@ WORKDIR $HOME/app
48
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
49
  COPY --chown=user . $HOME/app
50
 
51
- CMD ["python", "main.py"]
 
8
  #https://download.pytorch.org/whl/torch_stable.ht
9
 
10
  #https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
11
+ RUN apt-get update && apt-get install python3.9 python3-pip ffmpeg libsm6 libxext6 -y
12
 
13
  RUN pip install torch --extra-index-url https://download.pytorch.org/whl/cu113
14
  # --index-url https://download.pytorch.org/whl/cu117
15
  # --extra-index-url https://download.pytorch.org/whl/cu113
16
+ RUN pip3 install torchvision --extra-index-url https://download.pytorch.org/whl/cu113
17
+ RUN pip3 install --no-cache-dir --upgrade -U openmim
18
  RUN mim install --no-cache-dir --upgrade mmengine
19
  RUN mim install "mmcv>=2.0.1"
20
  RUN mim install "mmdet>=3.1.0"
 
23
 
24
  # Change directory to mmpose
25
  WORKDIR /code/mmpose
26
+ RUN pip3 install -r requirements.txt
27
+ RUN pip3 install -e .
28
 
29
  # How do we change it back with ..
30
  WORKDIR /..
31
 
32
  # RUN mim install "mmpose>=1.1.0"
33
+ RUN pip3 install -r /code/requirements.txt
34
 
35
  # Set up a new user named "user" with user ID 1000
36
  RUN useradd -m -u 1000 user
 
48
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
49
  COPY --chown=user . $HOME/app
50
 
51
+ CMD ["python3", "main.py"]