Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
FROM
|
|
|
2 |
|
3 |
# Use a more secure method for setting the working directory
|
4 |
WORKDIR /app
|
@@ -7,7 +8,8 @@ WORKDIR /app
|
|
7 |
COPY ./requirements.txt /app/requirements.txt
|
8 |
|
9 |
# Install dependencies
|
10 |
-
RUN
|
|
|
11 |
RUN apt update && apt install -y ffmpeg
|
12 |
|
13 |
# Add and configure the user
|
|
|
1 |
+
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
|
2 |
+
# FROM python:3.10.9
|
3 |
|
4 |
# Use a more secure method for setting the working directory
|
5 |
WORKDIR /app
|
|
|
8 |
COPY ./requirements.txt /app/requirements.txt
|
9 |
|
10 |
# Install dependencies
|
11 |
+
RUN apt update && apt install -y python3 python3-pip
|
12 |
+
RUN python3 -m pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
13 |
RUN apt update && apt install -y ffmpeg
|
14 |
|
15 |
# Add and configure the user
|