FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . RUN mkdir -p /data \ && chmod -R 777 /data COPY web_invoice_store.json /data/web_invoice_store.json RUN chmod 666 /data/web_invoice_store.json ENV DATA_DIR=/data ENV PORT=7860 CMD ["python", "server.py"]