Spaces:
No application file

M7-Bot / DockerFile
onine09's picture
Update DockerFile
09c2081 verified
Raw History Blame Contribute Delete
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