Spaces:
Paused
Paused
Download Dockerfile from mruniquehacker/mybot: direct link, hf CLI and curl.
- Browser
- Download file 658 Bytes
-
https://huggingface.co/spaces/mruniquehacker/mybot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mruniquehacker/mybot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mruniquehacker/mybot/resolve/main/Dockerfile
658 Bytes
| FROM node:lts-buster | |
| # Install dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg webp git && \ | |
| apt-get upgrade -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Create necessary directories with proper permissions | |
| RUN mkdir -p /tmp/knightbot && \ | |
| chmod -R 777 /tmp/knightbot | |
| # Clone the repository | |
| RUN git clone https://github.com/vaibhavk10/Knightbot /app | |
| WORKDIR /app | |
| # Install dependencies | |
| RUN yarn install --network-concurrency 1 | |
| # Set permissions for app directory | |
| RUN chmod -R 777 /app | |
| # Expose port for Hugging Face | |
| EXPOSE 7860 | |
| # Set production environment ok s | |
| ENV NODE_ENV=production | |
| # Start the bot | |
| CMD ["node", "index.js"] |