17 lines
304 B
Docker
17 lines
304 B
Docker
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"]
|