-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
FROM rocker/tidyverse:4.3.2 | ||
LABEL maintainer="[email protected]" | ||
|
||
COPY install_github.R . | ||
COPY github_package_list.tsv . | ||
|
||
# Install packages from github | ||
RUN --mount=type=secret,id=gh_pat \ | ||
Rscript install_github.R \ | ||
--packages github_package_list.tsv \ | ||
--token "$(sed -i s/GH_PAT=/GH_PAT=$(cat /run/secrets/gh_pat)/ .env.production) | ||
WORKDIR /rocker-build/ | ||
# Install apt-getable packages to start | ||
|
@@ -76,16 +86,6 @@ RUN Rscript -e "options(warn = 2);install.packages( \ | |
# cow needs this dependency: | ||
RUN Rscript -e "devtools::install_version('gitcreds', version = '0.1.1', repos = 'http://cran.us.r-project.org')" | ||
WORKDIR / | ||
COPY install_github.R . | ||
COPY github_package_list.tsv . | ||
|
||
# Install packages from github | ||
RUN --mount=type=secret,id=gh_pat \ | ||
Rscript install_github.R \ | ||
--packages github_package_list.tsv \ | ||
--token "$(sed -i s/GH_PAT=/GH_PAT=$(cat /run/secrets/gh_pat)/ .env.production)" | ||
|
||
# Set final workdir for commands | ||
WORKDIR /home/rstudio | ||
|