Files
tts_trans/Dockerfile

18 lines
312 B
Docker
Raw 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.
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 3333
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3333"]