Skip to content

Commit

Permalink
move to after environment is actually installed
Browse files Browse the repository at this point in the history
  • Loading branch information
sjspielman committed Jul 31, 2024
1 parent e548a92 commit 634e600
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions analyses/doublet-detection/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ RUN curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.s
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
&& find /opt/conda/ -follow -type f -name '*.js.map' -delete

# Complete installation of zellkonverter conda env
ENV BASILISK_EXTERNAL_DIR /usr/local/renv/basilisk
RUN Rscript -e "proc <- basilisk::basiliskStart(env = zellkonverter::zellkonverterAnnDataEnv(), testload = 'anndata'); \
basilisk::basiliskStop(proc); \
basilisk.utils::cleanConda()"

# Install conda-lock
RUN conda install --channel=conda-forge --name=base conda-lock

Expand All @@ -53,6 +47,12 @@ COPY conda-lock.yml conda-lock.yml
RUN conda-lock install -n ${ENV_NAME} conda-lock.yml && \
conda clean --all --yes

# Complete installation of zellkonverter conda env
ENV BASILISK_EXTERNAL_DIR /usr/local/renv/basilisk
RUN Rscript -e "proc <- basilisk::basiliskStart(env = zellkonverter::zellkonverterAnnDataEnv(), testload = 'anndata'); \
basilisk::basiliskStop(proc); \
basilisk.utils::cleanConda()"

# Copy the renv.lock file from the host environment to the image
COPY renv.lock renv.lock

Expand Down

0 comments on commit 634e600

Please sign in to comment.