Spaces:
Configuration error

jerymode's picture
Upload 12 files
720222a verified
Raw History Blame Contribute Delete
538 Bytes
FROM node:18-bullseye as build
WORKDIR /app/frontend
COPY frontend/package.json frontend/package-lock.json* ./
RUN npm install
COPY frontend/ .
RUN npm run build
FROM python:3.11-slim
# install ffmpeg, yt-dlp and build deps
RUN apt-get update && apt-get install -y ffmpeg build-essential git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY backend/ ./backend
COPY --from=build /app/frontend/build ./frontend/build
RUN pip install --no-cache-dir -r backend/requirements.txt
EXPOSE 7860
ENV PORT=7860
CMD ["python", "backend/server.py"]