Spaces:
Paused
Paused
Download Dockerfile from veltrixcode/GCX: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/veltrixcode/GCX/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/veltrixcode/GCX/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/veltrixcode/GCX/resolve/main/Dockerfile
469 Bytes
| # Use official Node.js image | |
| FROM node:18 | |
| # Create app directory | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json (if available) | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of your application | |
| COPY . . | |
| # Hugging Face Spaces provides a PORT env variable. Your app should listen on it. | |
| ENV PORT=7860 | |
| # Expose the port (not strictly required for HF Spaces, but good practice) | |
| EXPOSE $PORT | |
| # Start the app | |
| CMD ["npm", "start"] | |