Spaces:
Sleeping
Sleeping
Download Dockerfile from veltrixcode/ytm: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/veltrixcode/ytm/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/veltrixcode/ytm/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/veltrixcode/ytm/resolve/main/Dockerfile
396 Bytes
| # Node.js Dockerfile for Hugging Face Spaces (Docker runtime) | |
| FROM node:20-alpine AS base | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY package.json package-lock.json* ./ | |
| RUN npm ci --only=production || npm install --production | |
| # Copy source | |
| COPY . . | |
| ENV NODE_ENV=production | |
| # HF Spaces exposes a dynamic $PORT; default to 7860 for local runs | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["node", "app.js"] | |