Spaces:
Runtime error
Runtime error
File size: 390 Bytes
4a1859d af30f86 4a1859d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Explicitly add Python's script directory to PATH
ENV PATH="/usr/local/bin:$PATH"
# Create the .streamlit directory if it doesn't exist and grant write permissions
RUN mkdir -p /.streamlit && chmod -R 777 /.streamlit
EXPOSE 8501
CMD ["streamlit", "run", "app.py"]
|