Skip to content

Commit

Permalink
Rearrange
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy authored Jul 14, 2024
1 parent 553856b commit 1530f38
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions base_ottr/Dockerfile
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1530f38

Please sign in to comment.