Spaces:
Paused
Paused
docker update for torch
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -4,6 +4,9 @@ FROM python:3.10-slim
|
|
4 |
# Set working directory
|
5 |
WORKDIR /app
|
6 |
|
|
|
|
|
|
|
7 |
# Install system-level dependencies
|
8 |
RUN apt-get update && \
|
9 |
apt-get install -y ffmpeg libsndfile1 wget curl git && \
|
@@ -15,6 +18,7 @@ COPY requirements.txt .
|
|
15 |
# Upgrade pip and install dependencies
|
16 |
RUN pip install --no-cache-dir --upgrade pip && \
|
17 |
pip install --no-cache-dir -r requirements.txt
|
|
|
18 |
|
19 |
# Copy the entire app source code
|
20 |
COPY . .
|
|
|
4 |
# Set working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
RUN git config user.email "[email protected]" && \
|
8 |
+
git config user.name "peace2024"
|
9 |
+
|
10 |
# Install system-level dependencies
|
11 |
RUN apt-get update && \
|
12 |
apt-get install -y ffmpeg libsndfile1 wget curl git && \
|
|
|
18 |
# Upgrade pip and install dependencies
|
19 |
RUN pip install --no-cache-dir --upgrade pip && \
|
20 |
pip install --no-cache-dir -r requirements.txt
|
21 |
+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
|
22 |
|
23 |
# Copy the entire app source code
|
24 |
COPY . .
|