it works ... somehow (?)

This commit is contained in:
2026-01-16 20:55:05 +00:00
parent 280e7bd077
commit b89a8d76b6
3 changed files with 53 additions and 10 deletions

View File

@@ -1,16 +1,20 @@
FROM python:3.12-slim
FROM eswardudi/python-ffmpeg:3.13.3
WORKDIR /app
COPY server/py/fastapi_server/requirements.txt ./
RUN pip install --no-cache-dir r requirements.txt
COPY server/py/fastapi_server/requirements_prod.txt ./
RUN pip install --no-cache-dir -r requirements_prod.txt
# This one is necessary for the server
RUN apt install ffmpeg -y
#RUN apt update && apt install ffmpeg -y
COPY server/py/fastapi_server/ ./
#COPY server/py/fastapi_server/ ./
COPY ./server/py/fastapi_server/*.py ./
ENV PORT=3000
ENV PORT=8000
ENV HOST=0.0.0.0
ENV DOWNLOAD_FOLDER=/tmp/downloads
CMD ["fastapi","run","main.py"]
VOLUME ["/tmp/downloads"]
CMD ["python3", "main.py"]