Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
Signed-off-by: Chaichontat Sriworarat <[email protected]>
  • Loading branch information
chaichontat committed Sep 30, 2022
1 parent c4c69e1 commit 13b91a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ RUN apt-get install -y zlib1g-dev liblzma-dev libbz2-dev libcurl4-openssl-dev li
RUN R -e "install.packages(\"pak\", repos = sprintf(\"https://r-lib.github.io/p/pak/stable/%s/%s/%s\", .Platform\$pkgType, R.Version()\$os, R.Version()\$arch))"
RUN R -e "pak::pkg_install(c('rmarkdown', 'tidyverse', 'here', 'ggridges', 'scRNAseq', 'scater', 'scran', 'bluster'))"

ADD docker/environment.yml /root
RUN /opt/conda/bin/mamba env update -f /root/environment.yml && \
/opt/conda/bin/mamba clean --all -f -y

RUN curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" && \
bash "Mambaforge-$(uname)-$(uname -m).sh" -b -p /opt/conda && \
rm "Mambaforge-$(uname)-$(uname -m).sh" && \
chown -R rstudio:rstudio /opt/conda

ADD docker/environment.yml /root
RUN /opt/conda/bin/mamba env update -f /root/environment.yml && \
/opt/conda/bin/mamba clean --all -f -y
RUN su - rstudio -c '/opt/conda/bin/mamba init --all'

# RUN su - rstudio -c 'sh -c "$(wget -O- https://raw.githubusercontent.com/chaichontat/zsh-in-docker/6b63e78045933134ef7423de0ef9dedf4acb43d4/zsh-in-docker.sh)" -- \
Expand Down

0 comments on commit 13b91a3

Please sign in to comment.