Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -14
Dockerfile
CHANGED
@@ -1,23 +1,11 @@
|
|
1 |
-
|
2 |
-
RUN --gpus all nvidia/cuda:10.2-cudnn7-devel nvidia-smi
|
3 |
|
4 |
-
# Set the working directory
|
5 |
WORKDIR /code
|
6 |
|
7 |
-
# Copy the requirements file
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
-
# Install required dependencies, including CUDA toolkit
|
11 |
-
RUN apt-get update && \
|
12 |
-
apt-get install -y --no-install-recommends \
|
13 |
-
cuda-toolkit-11-4 && \
|
14 |
-
rm -rf /var/lib/apt/lists/*
|
15 |
-
|
16 |
-
# Install Python dependencies
|
17 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
18 |
|
19 |
-
# Copy the rest of the application code
|
20 |
COPY . .
|
21 |
|
22 |
-
|
23 |
-
CMD ["python", "caption_api.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
FROM python:3.9
|
|
|
2 |
|
|
|
3 |
WORKDIR /code
|
4 |
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
|
|
9 |
COPY . .
|
10 |
|
11 |
+
CMD ["python", "caption_api.py", "--host", "0.0.0.0", "--port", "7860"]
|
|