build(docker): install gcc for C extensions

This commit is contained in:
2026-07-29 22:30:51 +05:00
parent 57313f4d60
commit 23f6460617
+5
View File
@@ -6,6 +6,11 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
WORKDIR /app
# Install build tools for C extensions (e.g. TgCrypto), then clean up
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc && \
rm -rf /var/lib/apt/lists/*
# Install deps first — layer cache reuse on code-only changes
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt