Spaces:
Paused
Paused
Download Dockerfile from adowu/next-forge: direct link, hf CLI and curl.
- Browser
- Download file 908 Bytes
-
https://huggingface.co/spaces/adowu/next-forge/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/adowu/next-forge/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/adowu/next-forge/resolve/main/Dockerfile
908 Bytes
| # Auto-generated by GH -> HF Spaces Deployer | |
| FROM node:20-slim | |
| ENV NODE_ENV=production PORT=7860 HOST=0.0.0.0 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/* | |
| # Clone the source repository at build time. | |
| RUN git clone --depth 1 --branch main https://github.com/vercel/next-forge.git /app | |
| # Install dependencies (uses lockfile when present). | |
| RUN if [ -f package-lock.json ]; then npm_config_production=false npm ci || npm_config_production=false npm install; elif [ -f yarn.lock ]; then corepack enable && corepack prepare yarn@1.22.22 --activate && yarn install; elif [ -f pnpm-lock.yaml ]; then corepack enable && corepack prepare pnpm@8.15.6 --activate && pnpm install; else npm install; fi | |
| # Build step if a build script exists. | |
| RUN npm run build --if-present | |
| EXPOSE 7860 | |
| CMD ["node", "index.js"] | |