Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download Dockerfile from stevhliu/quantization-picker: direct link, hf CLI and curl.
- Browser
- Download file 755 Bytes
-
https://huggingface.co/spaces/stevhliu/quantization-picker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/stevhliu/quantization-picker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/stevhliu/quantization-picker/resolve/main/Dockerfile
755 Bytes
| # syntax=docker/dockerfile:1 | |
| FROM node:22-slim AS deps | |
| WORKDIR /app | |
| RUN corepack enable | |
| COPY package.json pnpm-lock.yaml ./ | |
| RUN pnpm install --frozen-lockfile | |
| FROM node:22-slim AS builder | |
| WORKDIR /app | |
| RUN corepack enable | |
| COPY --from=deps /app/node_modules ./node_modules | |
| COPY . . | |
| ENV NEXT_TELEMETRY_DISABLED=1 | |
| RUN pnpm run build | |
| FROM node:22-slim AS runner | |
| WORKDIR /app | |
| ENV NODE_ENV=production | |
| ENV NEXT_TELEMETRY_DISABLED=1 | |
| # Spaces routes traffic to 7860 and runs the container as uid 1000. | |
| ENV PORT=7860 | |
| ENV HOSTNAME=0.0.0.0 | |
| EXPOSE 7860 | |
| COPY --from=builder /app/public ./public | |
| COPY --from=builder --chown=node:node /app/.next/standalone ./ | |
| COPY --from=builder --chown=node:node /app/.next/static ./.next/static | |
| USER node | |
| CMD ["node", "server.js"] | |