forked from csag-uct/Metadata-Harmonisation-Tool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (18 loc) · 798 Bytes
/
Dockerfile
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
29
30
FROM mambaorg/micromamba:1.5.1
USER root
COPY --chown=$MAMBA_USER:$MAMBA_USER . .
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
RUN micromamba install --yes --file env_docker.yml && micromamba clean --all --yes
ARG MAMBA_DOCKERFILE_ACTIVATE=1 # (otherwise python will not be found)
RUN echo "source activate env" > ~/.bashrc
WORKDIR app/
RUN mkdir input/ && chown -R $MAMBA_USER:$MAMBA_USER input/
RUN mkdir results/ && chown -R $MAMBA_USER:$MAMBA_USER results/
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "streamlit", "run", "mapping_interface.py", "--server.port=8501", "--server.address=0.0.0.0"]