Skip to content

Commit

Permalink
build(docker): make file paths relative to reproduction/ parent
Browse files Browse the repository at this point in the history
to help troubleshoot the GHCR github action
  • Loading branch information
amyheather committed Jul 19, 2024
1 parent aa18ddf commit bb911db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions reproduction/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ WORKDIR ${PROJDIRECTORY}
# Copy desired files (inc. renv.lock)
# (run individually rather than with COPY all and .dockerignore, as that was
# inadvertently copying over something that was causing issues)
COPY --chown=rstudio DESCRIPTION DESCRIPTION
COPY --chown=rstudio docker docker
COPY --chown=rstudio outputs outputs
COPY --chown=rstudio README.md README.md
COPY --chown=rstudio renv.lock renv.lock
COPY --chown=rstudio reproduction.Rproj reproduction.Rproj
COPY --chown=rstudio scripts scripts
COPY --chown=rstudio tests tests
COPY --chown=rstudio ./reproduction/DESCRIPTION DESCRIPTION
COPY --chown=rstudio ./reproduction/docker docker
COPY --chown=rstudio ./reproduction/outputs outputs
COPY --chown=rstudio ./reproduction/README.md README.md
COPY --chown=rstudio ./reproduction/renv.lock renv.lock
COPY --chown=rstudio ./reproduction/reproduction.Rproj reproduction.Rproj
COPY --chown=rstudio ./reproduction/scripts scripts
COPY --chown=rstudio ./reproduction/tests tests

# Copy renv auto-loader tools
RUN mkdir -p renv/library
COPY .Rprofile .Rprofile
COPY renv/activate.R renv/activate.R
COPY ./reproduction/.Rprofile .Rprofile
COPY ./reproduction/renv/activate.R renv/activate.R

# Install seperately before restore (due to issues with finding system dependencies)
# Running the `renv::` commands will automatically install renv for us
Expand Down

0 comments on commit bb911db

Please sign in to comment.