-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
68 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) conda-store development team. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
|
||
FROM condaforge/miniforge3:24.9.2-0 AS base | ||
|
||
LABEL org.opencontainers.image.authors="conda-store development team" | ||
|
||
# must be passed at build environment (should use .python-version-default) | ||
ARG python_version | ||
ARG conda_env_name="conda-store" | ||
ARG user_no=1000 | ||
|
||
# ensure we are using the conda environment | ||
ENV PATH=/opt/conda/condabin:/opt/conda/envs/conda-store/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH} | ||
|
||
RUN apt-get update && \ | ||
apt-get install -yq --no-install-recommends curl && \ | ||
apt-get clean && \ | ||
rm -rf /var/cache/apt/* &&\ | ||
rm -rf /var/lib/apt/lists/* &&\ | ||
rm -rf /tmp/* &&\ | ||
groupadd -g ${user_no} conda-store &&\ | ||
useradd -M -r -s /usr/sbin/nologin -u ${user_no} -g ${user_no} conda-store && \ | ||
mkdir -p /opt/jupyterhub && \ | ||
chown -R conda-store:conda-store /opt/jupyterhub | ||
|
||
RUN mamba create --name ${conda_env_name} \ | ||
python=${python_version} nb_conda_kernels nodejs=18 yarn constructor conda-store \ | ||
--channel conda-forge -y && \ | ||
mamba clean --all -y && \ | ||
conda clean --force-pkgs-dirs | ||
|
||
RUN python -m pip install jupyter-launcher-shortcuts jupyterlab-conda-store jupyterlab\>=4.0.0 jupyterhub\>3.1.1 | ||
|
||
RUN npm install -g configurable-http-proxy | ||
|
||
WORKDIR /opt/conda-store | ||
|
||
USER conda-store | ||
WORKDIR /opt/jupyterhub |