Jofthomas HF staff commited on
Commit
22af12b
1 Parent(s): db0728b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
- FROM python:3.10.9
 
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 pip install --no-cache-dir --upgrade -r /app/requirements.txt
 
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