How to create a dockerfile reliably? #1141
-
|
I am on version 0.4.1 of golem. Whenever I do So, I run The generated dockerfile is: This works. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
|
hi, do you have more details about the fails with can you try with by defaut it create a temp folder using Regards |
Beta Was this translation helpful? Give feedback.
-
|
there is an issue with sysreqs. you can use : and check the potential missing system requirements to add in the Dockerfile |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hi @VincentGuyader, This creates a But with the former option that generates multiple files in the |
Beta Was this translation helpful? Give feedback.
-
|
I see the issue clearly :) One strategy would be to group everything into a single Dockerfile manually, like this: Alternatively, you could use Docker's multi-stage build like this... (As I'm writing this, I realize that the multi-stage approach looks promising... If it allows me to rerun only the second stage while benefiting from the builder's cache, I need to investigate further. If that's the case, it might become the new way to do things.) |
Beta Was this translation helpful? Give feedback.

there is an issue with sysreqs.
you can use :
golem::add_dockerfile(sysreqs = FALSE)and check the potential missing system requirements to add in the Dockerfile