Spaces:
Sleeping
Sleeping
Download Dockerfile from rohanshaw/comprex-api: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/rohanshaw/comprex-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rohanshaw/comprex-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rohanshaw/comprex-api/resolve/main/Dockerfile
344 Bytes
| # Use official Node.js image | |
| FROM node:18 | |
| # Create app directory | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy source code | |
| COPY . . | |
| # Expose the port Hugging Face expects (7860) | |
| EXPOSE 7860 | |
| # Define environment variable for port | |
| ENV PORT=7860 | |
| # Start the app | |
| CMD [ "npm", "start" ] |