Add Docker deployment support

This commit is contained in:
Dymas
2026-06-06 11:44:30 +02:00
parent 0af80fde24
commit d8b92d5025
5 changed files with 134 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ffmpeg \
sox \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip install --upgrade pip \
&& pip install -r requirements.txt
COPY . .
RUN mkdir -p /app/logs /app/history
EXPOSE 5042
CMD ["python", "server.py", "--config", "config.docker.json"]