18 lines
585 B
Plaintext
18 lines
585 B
Plaintext
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
# system deps if needed:
|
|
# RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy wrapper files only (not the bot repo)
|
|
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
|
|
RUN chmod +x /app/docker-entrypoint.sh
|
|
|
|
# Install base Python deps the bot will need at runtime
|
|
# If the bot repo has requirements.txt, the entrypoint will pip install it after clone.
|
|
RUN pip install --no-cache-dir pip setuptools wheel
|
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
|
# Let entrypoint decide the CMD; or:
|
|
# CMD ["python", "-u", "bot.py"]
|