Jofthomas HF staff commited on
Commit
25a173a
1 Parent(s): 3272744

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -26
Dockerfile CHANGED
@@ -1,30 +1,9 @@
1
- ARG BASE=nvidia/cuda:11.8.0-base-ubuntu22.04
2
- FROM ${BASE}
3
 
4
- # Install OS dependencies:
5
- RUN apt-get update && apt-get upgrade -y \
6
- && apt-get install -y --no-install-recommends \
7
- gcc g++ \
8
- make \
9
- python3 python3-dev python3-pip python3-venv python3-wheel \
10
- espeak-ng libsndfile1-dev \
11
- git \
12
- cuda-toolkit-11-8 \
13
- && rm -rf /var/lib/apt/lists/*
14
-
15
- # Install Major Python Dependencies:
16
- RUN pip3 install llvmlite --ignore-installed \
17
- && pip3 install torch torchaudio numpy --extra-index-url https://download.pytorch.org/whl/cu118 \
18
- && rm -rf /root/.cache/pip
19
-
20
- # Set the working directory
21
- WORKDIR /app
22
-
23
- # Copy all files into the container
24
  COPY . .
25
 
26
- # Install Python dependencies
27
- RUN pip install --no-cache-dir -r requirements.txt
 
28
 
29
- # Command to run the application
30
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10.9
 
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  COPY . .
4
 
5
+ WORKDIR /
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /requirements.txt
8
 
9
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]