StigmergicMiner / Dockerfile
MrFransis
Update Dockerfile
d2feb88
raw
history blame contribute delete
645 Bytes
FROM python:3.8-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
graphviz \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
COPY . .
RUN pip3 install -r requirements.txt
RUN mkdir -p /tmp/matplotlib && chmod 777 /tmp/matplotlib
RUN chmod -R 777 /app
ENV PYTHONPATH="${PYTHONPATH}:/app"
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV FONTCONFIG_PATH=/etc/fonts
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "webapp/Home.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]