cuda
Browse files- 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
|
| 17 |
-
RUN
|
| 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
|
| 27 |
-
RUN
|
| 28 |
|
| 29 |
# How do we change it back with ..
|
| 30 |
WORKDIR /..
|
| 31 |
|
| 32 |
# RUN mim install "mmpose>=1.1.0"
|
| 33 |
-
RUN
|
| 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 ["
|
|
|
|
| 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"]
|