Spaces:
Paused
Paused
Commit
·
329b59a
1
Parent(s):
46f8dfe
Enable GPU with Docker
Browse files- Dockerfile +0 -5
Dockerfile
CHANGED
@@ -1,19 +1,14 @@
|
|
1 |
-
# Use NVIDIA image with PyTorch, CUDA, cuDNN preinstalled
|
2 |
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
|
3 |
|
4 |
-
# Enable non-interactive install
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
|
7 |
-
# Install dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
git ffmpeg libsndfile1 python3-dev \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
-
# Copy and install Python dependencies
|
13 |
COPY requirements.txt .
|
14 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
15 |
|
16 |
-
# Copy app files
|
17 |
COPY . /app
|
18 |
WORKDIR /app
|
19 |
|
|
|
|
|
1 |
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
|
2 |
|
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
git ffmpeg libsndfile1 python3-dev \
|
7 |
&& rm -rf /var/lib/apt/lists/*
|
8 |
|
|
|
9 |
COPY requirements.txt .
|
10 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
11 |
|
|
|
12 |
COPY . /app
|
13 |
WORKDIR /app
|
14 |
|