first commit

This commit is contained in:
2025-11-06 03:25:44 -06:00
commit 38a9fb2789
17 changed files with 1153 additions and 0 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
# Lightweight Python base
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_ROOT_USER_ACTION=ignore
# Install only essential system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl gnupg tzdata \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# --- Python dependencies ---
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --no-cache-dir -r requirements.txt
# --- Copy app code ---
COPY app/ /app/
# Stay root or not
USER root
ENTRYPOINT ["python", "/app/main.py"]