Spaces:
Running
Running
Download Dockerfile from pranz29/portfolio-api: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/pranz29/portfolio-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pranz29/portfolio-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pranz29/portfolio-api/resolve/main/Dockerfile
408 Bytes
| # Use lightweight Node Alpine runtime | |
| FROM node:24-alpine | |
| # Set environment to production | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| WORKDIR /usr/src/app | |
| # Copy package configuration | |
| COPY package.json ./ | |
| # Install production dependencies | |
| RUN npm install --only=production | |
| # Copy server code | |
| COPY . . | |
| # Expose port (Hugging Face Spaces runs on 7860) | |
| EXPOSE 7860 | |
| # Run the server | |
| CMD [ "node", "server.js" ] | |