mirror of
https://github.com/alterware/aw-bot.git
synced 2025-11-18 09:02:07 +00:00
feat: venv
This commit is contained in:
@@ -4,8 +4,11 @@ RUN apt update && apt install -y ffmpeg
|
|||||||
|
|
||||||
WORKDIR /aw-bot
|
WORKDIR /aw-bot
|
||||||
|
|
||||||
|
RUN python -m venv /bot-env
|
||||||
|
|
||||||
|
# Activate the virtual environment and install dependencies
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN /bot-env/bin/pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY bot /aw-bot/bot
|
COPY bot /aw-bot/bot
|
||||||
COPY database /aw-bot/database
|
COPY database /aw-bot/database
|
||||||
@@ -16,6 +19,6 @@ COPY LICENSE .
|
|||||||
ENV BOT_TOKEN=""
|
ENV BOT_TOKEN=""
|
||||||
|
|
||||||
# Where the database will be stored
|
# Where the database will be stored
|
||||||
ENV BOT_DATA_DIR = ""
|
ENV BOT_DATA_DIR=""
|
||||||
|
|
||||||
CMD ["python", "aw.py"]
|
CMD ["/bot-env/bin/python", "aw.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user