Spaces:
Running
Running
Download server/Dockerfile from crambrodev/winx_prinx-api: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/crambrodev/winx_prinx-api/resolve/main/server/Dockerfile
- Command line
-
hf download hf://spaces/crambrodev/winx_prinx-api/server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/crambrodev/winx_prinx-api/resolve/main/server/Dockerfile
378 Bytes
| FROM node:20 | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json first to cache layers | |
| COPY package*.json ./ | |
| # Install only production dependencies (ignoring devDependencies) | |
| RUN npm ci --omit=dev | |
| # Copy all application files | |
| COPY . . | |
| # Expose port 3000 | |
| EXPOSE 3000 | |
| # Set environment to production | |
| ENV NODE_ENV=production | |
| # Run start command | |
| CMD ["node", "server.js"] | |