Skip to content

Commit

Permalink
Feature/multistage (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: CJ Yetman <[email protected]>
  • Loading branch information
AlexAxthelm and cjyetman authored Nov 28, 2023
1 parent 21c4aa8 commit bffe748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-and-push-Docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ jobs:
tags: ${{ steps.image-name.outputs.full-image-name }}
cache-from: type=gha
cache-to: type=gha,mode=min
no-cache-filters: install-pacta
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# set proper base image
ARG R_VERS="4.3.1"
FROM rocker/r-ver:$R_VERS
FROM rocker/r-ver:$R_VERS AS base

# set Docker image labels
LABEL org.opencontainers.image.source=https://github.com/RMI-PACTA/workflow.pacta
Expand Down Expand Up @@ -46,6 +46,8 @@ RUN echo "options(repos = c(CRAN = '$CRAN_REPO'), pkg.sysreqs = FALSE)" >> "${R_
# install packages for dependency resolution and installation
&& Rscript -e "install.packages('pak'); pak::pkg_install('renv')"

FROM base AS install-pacta

# copy in everything from this repo
COPY . /

Expand Down

0 comments on commit bffe748

Please sign in to comment.