receipter-pro / Dockerfile
M8ion deploy
Deploy backend
45dc2a1
Raw History Blame Contribute Delete
673 Bytes
FROM python:3.11-slim
# Hugging Face Spaces run the container as user 1000.
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user backend ./backend
# The disk is wiped on restart: real data lives in Firestore and Supabase, so the local
# fallback store only needs a scratch place to exist. LOCAL_TICKER runs the send timer here.
ENV LOCAL_STORE_DB_PATH=/tmp/local_store.db LOCAL_TICKER=true UPLOADS_DIR=/tmp/uploads
EXPOSE 7860
CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"]