Spaces:
Sleeping
Sleeping
File size: 523 Bytes
f58abe5 8ec847b b61714c 8ec847b f58abe5 8ec847b f58abe5 8ec847b f58abe5 8ec847b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM python:3.9-slim
WORKDIR /app
# Create directories and set permissions
RUN mkdir -p /app/.streamlit && \
chmod 777 /app/.streamlit
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Set environment variables
ENV STREAMLIT_SERVER_PORT=8501
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
EXPOSE 8501
# Run Streamlit
CMD ["streamlit", "run", "src/streamlit_app.py"] |