Spaces:
Configuration error
Configuration error
Download Dockerfile from DONFU2DS/YouTooooooooobReels_AI: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/spaces/DONFU2DS/YouTooooooooobReels_AI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DONFU2DS/YouTooooooooobReels_AI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DONFU2DS/YouTooooooooobReels_AI/resolve/main/Dockerfile
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"] | |