mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-26 14:15:54 +00:00
26 lines
505 B
Docker
26 lines
505 B
Docker
FROM python:slim-bookworm
|
|
|
|
RUN apt update && apt install -y ffmpeg
|
|
|
|
WORKDIR /aw-bot
|
|
|
|
RUN python -m venv /bot-env
|
|
|
|
# Activate the virtual environment and install dependencies
|
|
COPY requirements.txt .
|
|
RUN /bot-env/bin/pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY bot /aw-bot/bot
|
|
COPY database /aw-bot/database
|
|
COPY sounds /aw-bot/sounds
|
|
COPY aw.py .
|
|
COPY LICENSE .
|
|
|
|
ENV BOT_TOKEN=""
|
|
ENV GOOGLE_API_KEY=""
|
|
|
|
# Where the database will be stored
|
|
ENV BOT_DATA_DIR=""
|
|
|
|
CMD ["/bot-env/bin/python", "aw.py"]
|