Closed VincentGuyader closed 2 years ago
This works on my tests.
Could you test the correct build of a Dockerfile in the CI with an action completed like this one below?
Probably, in the steps, you'll need to install and run R to be able to create the Dockerfile on the fly.
You can probably also add this in the "check" Action
name: Docker Image CI
on:
push:
branches: [ "main", "explo-dockerfile" ]
pull_request:
branches: [ "main" ]
jobs:
build:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
Could you add the copy of "renv.lock.prod" before the renv::restore()
in the main Dockerfile as follows:
FROM listofcodes_socle
COPY renv.lock.prod renv.lock
RUN R -e 'renv::restore()'
@statnmap it's a golem issue: https://github.com/ThinkR-open/golem/issues/871
enhance dock_from_renv()