Spaces:
Runtime error
Runtime error
Updated Dockerfile for GPU Dependencies
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -42,12 +42,12 @@ RUN pip3 -V
|
|
42 |
|
43 |
# # FROM python:3.10
|
44 |
|
45 |
-
#
|
46 |
-
|
47 |
|
48 |
-
#
|
49 |
-
|
50 |
-
|
51 |
|
52 |
# # Create a non-root user and set environment variables
|
53 |
# RUN useradd -m -u 1000 user
|
|
|
42 |
|
43 |
# # FROM python:3.10
|
44 |
|
45 |
+
# Switch back to the root user to install Python packages
|
46 |
+
USER root
|
47 |
|
48 |
+
# Copy your requirements.txt and install Python packages
|
49 |
+
COPY ./requirements.txt /code/requirements.txt
|
50 |
+
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
51 |
|
52 |
# # Create a non-root user and set environment variables
|
53 |
# RUN useradd -m -u 1000 user
|