Spaces:
Sleeping
Sleeping
File size: 424 Bytes
9e93904 1efa16f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # 1. Base Image
FROM python:3.10-slim
# 2. Setup
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 3. Permissions
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# 4. FIX FOR AXIOS 403 ERROR
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] |