Files
yt2mp3/Dockerfile.fastapi
2026-01-16 16:03:43 +00:00

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"]