Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -9,11 +9,12 @@ RUN apt-get update && apt-get upgrade -y \
|
|
| 9 |
python3 python3-dev python3-pip python3-venv python3-wheel \
|
| 10 |
espeak-ng libsndfile1-dev \
|
| 11 |
git \
|
|
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# Install Major Python Dependencies:
|
| 15 |
RUN pip3 install llvmlite --ignore-installed \
|
| 16 |
-
&& pip3 install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 \
|
| 17 |
&& rm -rf /root/.cache/pip
|
| 18 |
|
| 19 |
# Set the working directory
|
|
@@ -23,7 +24,7 @@ WORKDIR /app
|
|
| 23 |
COPY . .
|
| 24 |
|
| 25 |
# Install Python dependencies
|
| 26 |
-
RUN pip install --no-cache-dir
|
| 27 |
|
| 28 |
# Command to run the application
|
| 29 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 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
|
|
|
|
| 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"]
|