Update wrapper/dockerfile
This commit is contained in:
parent
2e07d7ea86
commit
f5bc169b31
@ -1,17 +1,17 @@
|
|||||||
FROM python:3.11-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
WORKDIR /app
|
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)
|
# Install git + certs for HTTPS
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends git ca-certificates && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Optional: speed up pip
|
||||||
|
RUN pip install --no-cache-dir pip setuptools wheel
|
||||||
|
|
||||||
|
# Copy only the wrapper scripts (NOT the bot repo)
|
||||||
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
|
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
|
||||||
RUN chmod +x /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"]
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||||
# Let entrypoint decide the CMD; or:
|
|
||||||
# CMD ["python", "-u", "bot.py"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user