File tree 1 file changed +6
-14
lines changed
1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
FROM docker.io/aomlomics/tourmaline:latest
2
2
3
- USER root
4
- ENV NB_USER=jovyan \
5
- NB_UID=1000
3
+ ENV NB_USER=qiime2 \
4
+ NB_UID=1000 \
5
+ CONDA_DIR=/opt/conda
6
6
ENV HOME=/home/${NB_USER}
7
7
8
- RUN echo "Creating ${NB_USER} user..." \
9
- # Create a group for the user to be part of, with gid same as uid
10
- && groupadd --gid ${NB_UID} ${NB_USER} \
11
- # Create non-root user, with given gid, uid and create $HOME
12
- && useradd --create-home --gid ${NB_UID} --no-log-init --uid ${NB_UID} ${NB_USER} \
13
- # Make sure that /srv is owned by non-root user, so we can install things there
14
- && chown -R ${NB_USER}:${NB_USER} /srv
8
+ USER ${NB_USER}
15
9
16
10
# add the packages needed for jupyterhubs to the base environment
17
11
COPY jhub-environment.yml jhub-environment.yml
@@ -22,9 +16,7 @@ RUN conda install --name snakemake ipykernel && conda clean --all
22
16
RUN conda install --name qiime2-2023.5 ipykernel && conda clean --all
23
17
24
18
# Register the kernels so you can open in notebooks
25
- RUN python -m ipykernel install --prefix /srv/conda/envs/snakemake --name snakemake --display-name snakemake
26
- RUN python -m ipykernel install --prefix /srv/conda/envs/qiime2-2023.5 --name qiime2-2023.5 --display-name qiime2
27
- USER ${NB_USER}
19
+ RUN python -m ipykernel install --prefix ${CONDA_DIR}/envs/snakemake --name snakemake --display-name snakemake
20
+ RUN python -m ipykernel install --prefix ${CONDA_DIR}/envs/qiime2-2023.5 --name qiime2-2023.5 --display-name qiime2
28
21
29
- USER ${NB_USER}
30
22
WORKDIR /home/${NB_USER}
You can’t perform that action at this time.
0 commit comments