-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
34 lines (24 loc) · 1 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
# Base image for X86 architecture
FROM quay.io/jupyter/all-spark-notebook:x86_64-latest AS base-amd64
# Base image for ARM architecture
FROM quay.io/jupyter/all-spark-notebook:aarch64-latest AS base-arm64
# Actual base image to be used
FROM base-${TARGETARCH}
LABEL org.opencontainers.image.authors="[email protected]"
ENV DOCKER_STACKS_JUPYTER_CMD=server
USER root
# Graphviz
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends graphviz && \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER ${NB_UID}
# GCC (needed for XGBoost)
RUN mamba install --quiet --yes gcc && \
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 --quiet --no-cache-dir --requirement /tmp/requirements.txt && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
COPY --chown="${NB_UID}:${NB_GID}" before-notebook.d/ /usr/local/bin/before-notebook.d/