-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
24 lines (19 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM bioconductor/bioconductor_docker:devel
WORKDIR /home/rstudio/AnVILWorkshop
# Make the workshop repo under rstudio directory
COPY --chown=rstudio:rstudio . /home/rstudio/AnVILWorkshop
RUN chown -R rstudio:rstudio /home
# Add the Cloud SDK distribution URI as a package source
# Import the Google Cloud public key
# Update the package list and install the Cloud SDK
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \
&& apt-get update \
&& apt-get -y --no-install-recommends install google-cloud-sdk \
&& rm -rf /var/lib/apt/lists/*
# Add notedown python package for AnVILPublish
RUN pip3 install notedown
ENV PATH $PATH:/home/rstudio/.local/bin
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); BiocManager::install(ask=FALSE)"
# Install under the repo because working directory
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); devtools::install('.', dependencies=TRUE, build_vignettes=TRUE, repos = BiocManager::repositories())"