Spaces:
Running
Running
Realcat
commited on
Commit
•
78dd8f2
1
Parent(s):
39d360e
update: docker
Browse files- Dockerfile +2 -7
- build_docker.sh +1 -2
- env-docker.txt +2 -1
Dockerfile
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
# Use an official conda-based Python image as a parent image
|
2 |
-
FROM pytorch/pytorch:2.1
|
3 |
-
|
4 |
LABEL maintainer vincentqyw
|
5 |
-
ARG PYTHON_VERSION=3.10.
|
6 |
# Set the working directory to /code
|
7 |
WORKDIR /code
|
8 |
# Copy the current directory contents into the container at /code
|
@@ -15,11 +14,7 @@ ENV PATH /opt/conda/envs/imw/bin:$PATH
|
|
15 |
# Make RUN commands use the new environment
|
16 |
SHELL ["conda", "run", "-n", "imw", "/bin/bash", "-c"]
|
17 |
RUN pip install --upgrade pip
|
18 |
-
|
19 |
-
#RUN pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118
|
20 |
-
RUN pip install torch==2.1.0 torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cu118
|
21 |
RUN pip install -r env-docker.txt
|
22 |
-
|
23 |
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
24 |
|
25 |
# Export port
|
|
|
1 |
# Use an official conda-based Python image as a parent image
|
2 |
+
FROM pytorch/pytorch:2.2.1-cuda12.1-cudnn8-runtime
|
|
|
3 |
LABEL maintainer vincentqyw
|
4 |
+
ARG PYTHON_VERSION=3.10.10
|
5 |
# Set the working directory to /code
|
6 |
WORKDIR /code
|
7 |
# Copy the current directory contents into the container at /code
|
|
|
14 |
# Make RUN commands use the new environment
|
15 |
SHELL ["conda", "run", "-n", "imw", "/bin/bash", "-c"]
|
16 |
RUN pip install --upgrade pip
|
|
|
|
|
|
|
17 |
RUN pip install -r env-docker.txt
|
|
|
18 |
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
19 |
|
20 |
# Export port
|
build_docker.sh
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
docker build -t image-matching-webui:latest . --no-cache
|
2 |
docker tag image-matching-webui:latest vincentqin/image-matching-webui:latest
|
3 |
-
docker push vincentqin/image-matching-webui:latest
|
4 |
-
|
|
|
1 |
docker build -t image-matching-webui:latest . --no-cache
|
2 |
docker tag image-matching-webui:latest vincentqin/image-matching-webui:latest
|
3 |
+
docker push vincentqin/image-matching-webui:latest
|
|
env-docker.txt
CHANGED
@@ -27,5 +27,6 @@ seaborn==0.12.2
|
|
27 |
shapely==2.0.1
|
28 |
tensorboardX==2.6.1
|
29 |
torchmetrics==0.6.0
|
|
|
30 |
tqdm==4.65.0
|
31 |
-
yacs==0.1.8
|
|
|
27 |
shapely==2.0.1
|
28 |
tensorboardX==2.6.1
|
29 |
torchmetrics==0.6.0
|
30 |
+
torchvision==0.17.1
|
31 |
tqdm==4.65.0
|
32 |
+
yacs==0.1.8
|