Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -11,8 +11,11 @@ RUN chmod 1777 /tmp \
|
|
11 |
&& dpkg -i /tmp/cuda-keyring.deb && apt update -q \
|
12 |
&& apt install -y --no-install-recommends libcudnn8 libcublas-12-2
|
13 |
|
14 |
-
#
|
15 |
-
|
|
|
|
|
|
|
16 |
|
17 |
# Copy the application code
|
18 |
COPY main.py main.py
|
|
|
11 |
&& dpkg -i /tmp/cuda-keyring.deb && apt update -q \
|
12 |
&& apt install -y --no-install-recommends libcudnn8 libcublas-12-2
|
13 |
|
14 |
+
# Copy the requirements.txt file into the container
|
15 |
+
COPY requirements.txt /app/requirements.txt
|
16 |
+
|
17 |
+
# Install Python dependencies from requirements.txt
|
18 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
19 |
|
20 |
# Copy the application code
|
21 |
COPY main.py main.py
|