forked from OHF-Voice/piper1-gpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 746 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (21 loc) · 746 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
FROM python:3.12 AS builder
RUN apt-get update && \
apt-get install --yes --no-install-recommends \
build-essential cmake ninja-build git
WORKDIR /app
COPY pyproject.toml setup.py CMakeLists.txt MANIFEST.in README.md ./
COPY src/piper/ ./src/piper/
COPY script/setup script/dev_build script/package ./script/
RUN script/setup --dev
RUN script/dev_build
RUN script/package
# -----------------------------------------------------------------------------
FROM python:3.12-slim
ENV PIP_BREAK_SYSTEM_PACKAGES=1
WORKDIR /app
COPY --from=builder /app/dist/piper_tts-*linux*.whl ./dist/
RUN pip3 install ./dist/piper_tts-*linux*.whl
RUN pip3 install 'flask>=3,<4'
COPY docker/entrypoint.sh /
EXPOSE 5000
ENTRYPOINT ["/entrypoint.sh"]