Download Dockerfile from taqarub/node-api: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/taqarub/node-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/taqarub/node-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/taqarub/node-api/resolve/main/Dockerfile
503 Bytes
| FROM node:20-alpine | |
| RUN corepack enable && corepack prepare pnpm@9.12.0 --activate | |
| WORKDIR /app | |
| COPY package.json ./ | |
| RUN pnpm install --prod=false | |
| COPY server/ server/ | |
| COPY shared/ shared/ | |
| COPY drizzle/ drizzle/ | |
| COPY drizzle.config.ts tsconfig.json ./ | |
| RUN npx esbuild server/_core/index.ts \ | |
| --platform=node \ | |
| --packages=external \ | |
| --bundle \ | |
| --format=cjs \ | |
| --outdir=dist | |
| RUN pnpm prune --prod | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["node", "dist/index.js"] | |