forked from Quansight/nb_conda_store_kernels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (18 loc) · 837 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
FROM --platform=linux/amd64 condaforge/mambaforge
COPY environment.yaml /opt/nb_conda_store_kernels/environment.yaml
ENV PATH=/opt/conda/condabin:/opt/conda/envs/nb_conda_store_kernels/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}
RUN mamba env create -f /opt/nb_conda_store_kernels/environment.yaml
COPY . /opt/nb_conda_store_kernels/
RUN cd /opt/nb_conda_store_kernels && \
pip install -e .
ARG UID=1000
ARG GID=1000
ARG USER=jovyan
RUN useradd -l -m -s /bin/bash -N -u "${UID}" "${USER}" && \
mkdir -p /home/jovyan/.jupyter && \
cp /opt/nb_conda_store_kernels/tests/assets/jupyter_config.py /home/jovyan/.jupyter/jupyter_config.py
WORKDIR /home/${USER}
USER ${UID}
ENV CONDA_STORE_AUTH=token
ENV CONDA_STORE_URL=https://conda.store
CMD ["jupyter", "lab", "--ip=0.0.0.0"]