MarneMorgan commited on
Commit
d8a8a81
·
verified ·
1 Parent(s): d06e74a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ ffmpeg curl ca-certificates git \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Install Piper
8
+ RUN mkdir -p /opt/piper \
9
+ && curl -L https://github.com/rhasspy/piper/releases/latest/download/piper_linux_x86_64.tar.gz \
10
+ | tar -xz -C /opt/piper --strip-components=1
11
+
12
+ ENV PATH="/opt/piper:${PATH}"
13
+
14
+ WORKDIR /app
15
+
16
+ COPY requirements.txt .
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ COPY app.py drive.py ./
20
+ COPY voices ./voices
21
+
22
+ EXPOSE 7860
23
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]