Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download Dockerfile from huggingface/inference-playground: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/spaces/huggingface/inference-playground/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/huggingface/inference-playground/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/huggingface/inference-playground/resolve/main/Dockerfile
594 Bytes
| FROM node:22 | |
| # Install pnpm | |
| RUN npm install -g pnpm@10 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy package.json and pnpm-lock.yaml | |
| COPY package.json pnpm-lock.yaml* ./ | |
| # Install all dependencies, including dev dependencies | |
| RUN pnpm install --frozen-lockfile | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Build the application | |
| RUN pnpm run build | |
| # Prune dev dependencies | |
| RUN pnpm prune --prod | |
| # Set correct permissions | |
| RUN chown -R node:node /app | |
| # Switch to non-root user | |
| USER node | |
| # Expose the port the app runs on | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["node", "build"] | |