Skip to content

Commit

Permalink
dockerfile userspace shenanigans to cleanup leftover files
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Oct 7, 2024
1 parent d3878b0 commit ec8135e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ COPY infra-requirements.txt /tmp/
RUN mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml && \
mamba clean -afy

USER root
RUN rm /tmp/environment.yml /tmp/infra-requirements.txt

USER root
ENV PLAYWRIGHT_BROWSERS_PATH ${CONDA_DIR}
RUN playwright install-deps
RUN chown -Rh jovyan:jovyan /srv/conda
Expand All @@ -178,10 +178,6 @@ USER ${NB_USER}
ENV PLAYWRIGHT_BROWSERS_PATH ${CONDA_DIR}
RUN playwright install chromium

# 2024-01-13 sknapp: incompatible due to notebook 7
# RUN jupyter contrib nbextensions install --sys-prefix --symlink && \
# jupyter nbextensions_configurator enable --sys-prefix

# Set CRAN mirror to rspm before we install anything
COPY Rprofile.site /usr/lib/R/etc/Rprofile.site
# RStudio needs its own config
Expand All @@ -201,18 +197,24 @@ RUN r /tmp/install.R && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds

# install bio1b packages
USER ${NB_USER}
COPY bio1b-packages.bash /tmp/bio1b-packages.bash
RUN bash /tmp/bio1b-packages.bash
USER root
RUN rm /tmp/bio1b-packages.bash

# install ib134L packages
USER ${NB_USER}
COPY ib134-packages.bash /tmp/ib134-packages.bash
RUN bash /tmp/ib134-packages.bash
USER root
RUN rm /tmp/ib134-packages.bash

# install ccb293 packages
USER ${NB_USER}
COPY ccb293-packages.bash /tmp/ccb293-packages.bash
RUN bash /tmp/ccb293-packages.bash
USER root
RUN rm /tmp/ccb293-packages.bash

ENTRYPOINT ["tini", "--"]

0 comments on commit ec8135e

Please sign in to comment.