Spaces:
Sleeping
Sleeping
Download Dockerfile from Huzaifa1435/Carpool_final: direct link, hf CLI and curl.
- Browser
- Download file 463 Bytes
-
https://huggingface.co/spaces/Huzaifa1435/Carpool_final/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Huzaifa1435/Carpool_final/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Huzaifa1435/Carpool_final/resolve/main/Dockerfile
463 Bytes
| # Use Node.js 18 slim image | |
| FROM node:18-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files first (for better caching) | |
| COPY package*.json ./ | |
| # Install dependencies using npm install (not ci, to avoid lock file issues) | |
| RUN npm install --production | |
| # Copy all source files | |
| COPY . . | |
| # Expose port 7860 (Hugging Face default) | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| # Start the application | |
| CMD ["npm", "start"] |