FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && useradd -u 10001 -m wasabia
COPY app.py manage.py integration.py delivery.py starter_import.py pilot.py estimate.py client_portal.py receipt.py support.py workboard.py automation.py automation_sender.py AUTOMATION-INSTALL.txt mailbox_sync.py mailbox_api.py team.py publications.py ./
COPY static ./static
USER 10001:10001
CMD ["gunicorn","--workers","2","--threads","2","--bind","0.0.0.0:8080","--timeout","30","--preload","app:create_app()"]
