diff --git a/base_ottr/Dockerfile b/base_ottr/Dockerfile index 2af9802..d12b9c7 100644 --- a/base_ottr/Dockerfile +++ b/base_ottr/Dockerfile @@ -8,7 +8,7 @@ COPY github_package_list.tsv . RUN --mount=type=secret,id=github_token \ Rscript install_github.R \ --packages github_package_list.tsv \ - --token /run/secrets/github_token + --token '/run/secrets/github_token' WORKDIR /rocker-build/ diff --git a/base_ottr/install_github.R b/base_ottr/install_github.R index 7b42deb..be5d676 100644 --- a/base_ottr/install_github.R +++ b/base_ottr/install_github.R @@ -31,7 +31,7 @@ option_list <- list( opt <- parse_args(OptionParser(option_list = option_list)) # Read in the token -token <- readLines(as.character(opt$tokens)[1]) +token <- readLines(opt$tokens) message(token)