-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 773 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Use official Python 3.11 image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
git-lfs \
libsndfile1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Git LFS setup
RUN git lfs install
# Install PlayDiffusion
RUN git clone https://github.com/playht/PlayDiffusion /app/PlayDiffusion
# Set working dir inside repo
WORKDIR /app/PlayDiffusion
# Upgrade pip and install dependencies (including demo)
RUN pip install --upgrade pip && \
pip install '.[demo]'
# Create HuggingFace cache mount path
ENV HF_HOME=/app/.cache/huggingface
# Expose default gradio port
EXPOSE 7860
# Set default run command
CMD ["python", "demo/gradio-demo.py"]