Spaces:
Sleeping
Sleeping
Download Dockerfile from YOGESHJIO5770/EBOOKS: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/YOGESHJIO5770/EBOOKS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/YOGESHJIO5770/EBOOKS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/YOGESHJIO5770/EBOOKS/resolve/main/Dockerfile
423 Bytes
| # Use official Node.js lightweight image | |
| FROM node:20-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy package configurations | |
| COPY package*.json ./ | |
| # Install production dependencies | |
| RUN npm ci --only=production | |
| # Copy all server code | |
| COPY . . | |
| # Hugging Face Spaces requires exposing and running on port 7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Command to run our backend server | |
| CMD ["node", "server.js"] | |