Closed gueyenono closed 1 year ago
(Note: I've transferred to this repo as {dockerfiler} is the one in charge of Dockerfile creation)
Thanks for reporting, we'll have a look into that
I'm getting a similar set of errors trying to build with these new system dependencies
Any ideas on how to get around this @ColinFay ?
Update 2023-02-28 17:18:11 EST: Fortunately had the old Dockerfile saved, copy pasted the system dependencies on the second line from there and now it's working again:
RUN apt-get update -y && apt-get install -y libmysqlclient-dev libcurl4-openssl-dev libssl-dev make zlib1g-dev git libicu-dev libfreetype6-dev libfribidi-dev libharfbuzz-dev libxml2-dev libfontconfig1-dev libjpeg-dev libpng-dev libtiff-dev pandoc libgit2-dev && rm -rf /var/lib/apt/lists/*
Seems like the addition of the new system dependencies in new versions of dockerfiler may be problematic on some machines?
reprex :
remotes::install_github("thinkr-open/golem@dev")
golem::create_golem(path = ".",overwrite = TRUE)
usethis::use_package("chromote")
golem::add_dockerfile_with_renv(output_dir = "deploy",document = FALSE)
easy way to deal with it :
golem::add_dockerfile_with_renv(output_dir = "deploy",document = FALSE, expand = TRUE)
use expand = TRUE
instead of expand = FALSE
wiil be fixed by : https://github.com/ThinkR-open/dockerfiler/pull/54
Awesome thank you @VincentGuyader
My Shiny app makes use of the
{chromote}
package, which relies on Google Chrome. When I runadd_dockerfile_with_renv()
, I get the following (not complete) code for theDockerfile_base
:Upon attempting to build the container based on this dockerfile, I get the following error:
This is apparently caused by the three bits of the
Dockerfile_base
with[ $(which google-chrome) ]
. Everything runs smoothly when I take these bits out, but at the end of the building process,google-chrome
is unfortunately not installed as checked bywhich google-chrome
in the command line.