Spaces:
Sleeping
Sleeping
Download Dockerfile from Docfile/gemini-realtime-console: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/Docfile/gemini-realtime-console/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Docfile/gemini-realtime-console/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Docfile/gemini-realtime-console/resolve/main/Dockerfile
570 Bytes
| # Use the official Node.js image with a more recent version | |
| FROM node:20 | |
| # Create and change to the app directory. | |
| WORKDIR /usr/src/app | |
| # Copy application dependency manifests to the container image. | |
| COPY package*.json ./ | |
| # Install all dependencies (including devDependencies for build) | |
| RUN npm install | |
| # Copy application code and environment variables | |
| COPY . . | |
| # Build the app | |
| RUN npm run build | |
| # Expose the port the app runs on | |
| EXPOSE 3001 | |
| # Set environment variable for production | |
| ENV NODE_ENV=production | |
| # Run the server | |
| CMD [ "npm", "run", "start-server" ] |