Spaces:
No application file
No application file
Download DockerFile from Marshall7ESport/M7-Bot: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/Marshall7ESport/M7-Bot/resolve/main/DockerFile
- Command line
-
hf download hf://spaces/Marshall7ESport/M7-Bot/DockerFile
-
curl -L -o DockerFile https://huggingface.co/spaces/Marshall7ESport/M7-Bot/resolve/main/DockerFile
442 Bytes
| FROM python:3.11 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user requirements.txt . | |
| # On ajoute fastapi et uvicorn pour que Hugging Face accepte le projet | |
| RUN pip install --no-cache-dir fastapi uvicorn discord.py groq python-dotenv | |
| COPY --chown=user . . | |
| # Commande pour lancer le bot ET le petit serveur en même temps | |
| CMD python app.py & uvicorn main:app --host 0.0.0.0 --port 7860 |