MCP_Res / Dockerfile
mgbam's picture
Update Dockerfile
caee626 verified
raw
history blame
593 Bytes
FROM python:3.10-slim
ENV HOME=/app
ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit
# Add a default Streamlit config.toml (if you don’t already copy it)
RUN echo "\
[server]\n\
headless = true\n\
port = 8501\n\
address = \"0.0.0.0\"\n\
enableCORS = false\n\
enableXsrfProtection = false\n\
" > /app/.streamlit/config.toml
EXPOSE 8501
CMD streamlit run app.py --server.port=8501 --server.address=0.0.0.0