Spaces:
Sleeping

File size: 331 Bytes
0681a6b
0f8cd7e
 
 
 
0681a6b
 
0f8cd7e
0681a6b
 
1
2
3
4
5
6
7
8
9
10
11
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PERSIST_DIR=/data/relay \
    RETENTION_SECONDS=10800
EXPOSE 7860
# Attach Space Persistent Storage at /data for durability across rebuilds.
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]