23 lines
530 B
Docker
23 lines
530 B
Docker
# Use a slim Python base
|
|
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
libmariadb-dev-compat \
|
|
libmariadb-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy code & credentials template
|
|
COPY . .
|
|
|
|
# Entrypoint: reads SUPPORT_ADDRESS, TOKEN_PATH, OUTPUT_DIR env vars
|
|
ENTRYPOINT ["bash", "-lc", "python main.py"] |