FROM python:3.12-slim
WORKDIR /srv/ck-branding
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
ENV HOST=0.0.0.0 PORT=5000 CK_DATABASE=/data/ck_branding.db
RUN mkdir -p /data
EXPOSE 5000
CMD ["python", "app/app.py"]
