Spaces:
Runtime error
Runtime error
Download Dockerfile from o134/Desinger-System: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/o134/Desinger-System/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/o134/Desinger-System/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/o134/Desinger-System/resolve/main/Dockerfile
545 Bytes
| FROM node:22-slim AS base | |
| ENV PNPM_HOME="/pnpm" | |
| ENV PATH="$PNPM_HOME:$PATH" | |
| RUN corepack enable | |
| ENV CI=true | |
| # Build stage | |
| FROM base AS build | |
| COPY . /usr/src/app | |
| WORKDIR /usr/src/app | |
| RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | |
| RUN pnpm run build | |
| # Final stage | |
| FROM base | |
| COPY --from=build /usr/src/app /usr/src/app | |
| WORKDIR /usr/src/app | |
| # Expose port 7860 (Hugging Face default) | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| # Set production environment | |
| ENV NODE_ENV=production | |
| # Start the application | |
| CMD [ "pnpm", "start" ] | |