forked from binder-examples/requirements
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (21 loc) · 982 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
ARG BASE_IMAGE_TAG=v0.44.1
FROM ghcr.io/pyvista/pyvista:$BASE_IMAGE_TAG
COPY --chown=${NB_UID}:${NB_GID} mamba.txt /tmp/
RUN mamba install --yes --file /tmp/mamba.txt && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
RUN pip install --no-cache-dir --requirement /tmp/requirements.txt && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
RUN pip install --no-cache-dir --index-url https://gmsh.info/python-packages-dev-nox \
--pre "gmsh>=4.11" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
COPY --chown=${NB_UID}:${NB_GID} requirements-no-deps.txt /tmp/
RUN pip install --no-deps --no-cache-dir --requirement /tmp/requirements-no-deps.txt && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
COPY --chown=${NB_UID}:${NB_GID} . ${HOME}
WORKDIR ${HOME}