docker builds

This commit is contained in:
2026-01-16 16:03:43 +00:00
parent 99a2fff3ff
commit 8d741e94db
4 changed files with 45 additions and 0 deletions

16
Dockerfile.fastapi Normal file
View File

@@ -0,0 +1,16 @@
FROM python:3.12-slim
WORKDIR /app
COPY server/py/fastapi_server/requirements.txt ./
RUN pip install --no-cache-dir r requirements.txt
# This one is necessary for the server
RUN apt install ffmpeg -y
COPY server/py/fastapi_server/ ./
ENV PORT=3000
ENV HOST=0.0.0.0
CMD ["fastapi","run","main.py"]