Rockk08 commited on
Commit
2617fc1
·
1 Parent(s): ec23d32

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -14
Dockerfile CHANGED
@@ -1,23 +1,11 @@
1
- # Use NVIDIA CUDA base image
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
- # Specify the default command to run on container start
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"]