dashboard / Dockerfile
Arrechenash's picture
Refactor: Modularize data source and add chart page
89dd6ec
raw
history blame contribute delete
723 Bytes
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
ENV HOME=/app
COPY requirements.txt ./
COPY src/ ./src/
RUN pip3 install --no-cache-dir -r requirements.txt
# Create all needed directories and set permissions
RUN mkdir -p /app/.streamlit /app/.duckdb/extensions \
&& chmod -R 777 /app/.streamlit /app/.duckdb
RUN echo "[browser]\ngatherUsageStats = false" > /app/.streamlit/config.toml
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
ENTRYPOINT ["streamlit", "run", "src/main.py", "--server.port=8501", "--server.address=0.0.0.0"]