optibot / Dockerfile
SorovotPelo's picture
Update Dockerfile
16d3bb7 verified
raw
history blame contribute delete
570 Bytes
FROM debian:stable
USER root
ENV DEBIAN_FRONTEND noninteractive
COPY . /app
RUN chmod -R 777 /app
WORKDIR /app
# Instalar dependencias
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv
# Crear entorno virtual
RUN python3 -m venv /app/venv
# Instalar paquetes de Python
RUN /app/venv/bin/pip install discord.py discord.py google-generativeai python-dotenv uvicorn aiohttp requests beautifulsoup4 pymupdf fastapi
# Copiar el script del bot
COPY bot.py /app/bot.py
# Comando para ejecutar el bot
CMD ["/app/venv/bin/python", "/app/bot.py"]