Select Git revision
DockerfileConda 992 B
FROM continuumio/miniconda3:latest as conda
ENV PYTHONUNBUFFERED=1
WORKDIR /app
#RUN apt-get update && apt-get install -y \
# build-essential \
# curl \
# software-properties-common \
# git \
# python3-dev \
# libblas-dev \
# liblapack-dev \
# && rm -rf /var/lib/apt/lists/*
#RUN git clone --single-branch -b release https://git-ce.rwth-aachen.de/leah.tgu/mdata_app.git .
COPY .streamlit/ .streamlit/
COPY logic/ logic/
COPY pages/ pages/
COPY resources/ resources/
COPY environment.yml streamlit_app.py ./
FROM conda as builder
RUN conda env create -f "environment.yml"
FROM builder as final
COPY --from=builder /opt/venv venv
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
SHELL ["conda", "run", "-n", "mdata-app", "/bin/bash", "-c"]
# CMD ["./docker-entrypoint.sh"]
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "mdata-app", "streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]