Spaces:
Sleeping
Sleeping
File size: 645 Bytes
9844377 dbccc37 2ac1dfd dbccc37 9844377 dbccc37 824fa87 d2feb88 824fa87 4d85257 824fa87 4d85257 dbccc37 267433c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
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"] |