Refat81's picture
Update Dockerfile
fe349f6 verified
raw
history blame contribute delete
548 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
COPY *.py ./
COPY pages/ ./pages/
COPY .streamlit/ ./.streamlit/
RUN pip3 install --no-cache-dir -r requirements.txt
ENV STREAMLIT_GLOBAL_METRICS=false
ENV STREAMLIT_GLOBAL_DEVELOPMENT_MODE=false
ENV STREAMLIT_SERVER_HEADLESS=true
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--global.developmentMode=false", "--browser.gatherUsageStats=false"]