Spaces:
Paused
Paused
Download dockerfile from mikmc/hemsinabox: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/spaces/mikmc/hemsinabox/resolve/main/dockerfile
- Command line
-
hf download hf://spaces/mikmc/hemsinabox/dockerfile
-
curl -L -o dockerfile https://huggingface.co/spaces/mikmc/hemsinabox/resolve/main/dockerfile
709 Bytes
| # Use the official Node.js 20 slim image | |
| FROM node:20-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Install dependencies and necessary tools | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| aria2 \ | |
| ca-certificates && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| update-ca-certificates | |
| # Copy application files | |
| COPY package*.json ./ | |
| RUN npm install --production | |
| COPY . . | |
| # Add and make the startup script executable | |
| COPY start.sh /app/start.sh | |
| RUN chmod +x /app/start.sh | |
| # Set environment variable (to be overridden by Hugging Face secrets) | |
| ENV TELEGRAMBOT=default-placeholder-token | |
| # Expose the updated port | |
| EXPOSE 3000 | |
| # Start the container | |
| CMD ["sh", "/app/start.sh"] | |