Files
TtsSpeaker/server/Dockerfile.runtime
tongtong 1856de97bc 初始化 TTS 引擎工程:Android 系统引擎、Go 在线合成服务与测试客户端
- android-engine:TextToSpeechService 引擎,含设置页、语音包导入(SHA-256 校验)与预热
- server:Go CPU 合成服务与部署文件
- test-client:端到端验证客户端
- 模型与语音包不入库,见 models/README.md
2026-11-23 14:59:46 +08:00

13 lines
570 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 节点构建用:只打包预编译产物,不装 Go、不走 Docker Hub。
# 构建上下文为 dist/(tts-server + lib/*.so,由 README 的交叉编译步骤生成):
# docker build -f Dockerfile.runtime -t docker.io/library/tts-server:<tag> dist
FROM debian:bookworm-slim
RUN mkdir -p /cache && chown 65534:65534 /cache
WORKDIR /app
COPY tts-server /app/tts-server
COPY lib/ /app/lib/
RUN chmod 755 /app/tts-server
ENV LD_LIBRARY_PATH=/app/lib TTS_LISTEN=:8080 TTS_VOICES=/voices TTS_CACHE=/cache
EXPOSE 8080
USER 65534:65534
ENTRYPOINT ["/app/tts-server"]