Files
tts_trans/Dockerfile

18 lines
314 B
Docker
Raw Normal View History

FROM python:3.11-alpine
# 安装 ffmpegalpine 版很小)
RUN apk add --no-cache ffmpeg
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ .
RUN mkdir -p /app/data /app/audio
EXPOSE 17200
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "17200"]