-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 1.23 KB
/
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
31
32
33
34
35
FROM ghcr.io/biosimulators/biosimulators:0.0.9
LABEL \
org.opencontainers.image.title="BioSimulators Jupyter server" \
org.opencontainers.image.description="Jupyter server in a Python environment with the validated simulation tools registered with BioSimulators" \
org.opencontainers.image.url="https://github.com/biosimulators/Biosimulators_tutorials" \
org.opencontainers.image.documentation="https://docs.biosimulations.org/" \
org.opencontainers.image.source="https://github.com/biosimulators/Biosimulators_tutorials" \
org.opencontainers.image.authors="BioSimulators Team <info@biosimulators.org>" \
org.opencontainers.image.vendor="BioSimulators Team"
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt \
&& rm /tmp/requirements.txt \
&& pip uninstall -y ipyparallel
ARG NB_USER=biosimulators
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME=/home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
COPY tutorials/ ${HOME}
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
WORKDIR ${HOME}
ENV PYTHONWARNINGS="ignore::biosimulators_utils.warnings.BioSimulatorsWarning"
CMD /bin/bash /xvfb-startup.sh