File size: 673 Bytes
45dc2a1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"]