Spaces:
Paused
Paused
Download Dockerfile from Akwbw/FrontPilot: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/Akwbw/FrontPilot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Akwbw/FrontPilot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Akwbw/FrontPilot/resolve/main/Dockerfile
681 Bytes
| # Use a specific Node.js version for consistency | |
| FROM node:20-alpine | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy the rest of the application source code | |
| COPY . . | |
| # Build the application | |
| RUN npm run build | |
| # Expect GEMINI_API_KEY to be provided at runtime by Hugging Face Spaces (Settings -> Secrets) | |
| # Install only production dependencies needed to run the server | |
| RUN npm install --production express | |
| # Expose the port that Hugging Face Spaces uses by default | |
| EXPOSE 7860 | |
| # Start Node server that serves static files and proxies API calls | |
| CMD ["node", "server.js"] |