Spaces:
Running
Running
Download Dockerfile from pwVP/Drive2Youtube: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/spaces/pwVP/Drive2Youtube/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pwVP/Drive2Youtube/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pwVP/Drive2Youtube/resolve/main/Dockerfile
452 Bytes
| # Use lightweight official Node.js image | |
| FROM node:20-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package definitions | |
| COPY package*.json ./ | |
| # Install production dependencies | |
| RUN npm install --omit=dev | |
| # Copy all application files | |
| COPY . . | |
| # Ensure data directory exists | |
| RUN mkdir -p data | |
| # Expose dynamic cloud port (7860 for Hugging Face Spaces, 3000 for standard) | |
| ENV PORT=7860 | |
| EXPOSE 7860 3000 | |
| # Start server | |
| CMD ["node", "server.js"] | |