#mounts + publish
1 messages · Page 1 of 1 (latest)
Mounts won't be included, but you can copy a directory/file using WithDirectory/WithFile which are equivalent to COPY
excluding mounts is often useful for e.g. having artifacts available to the build process that you don't need at runtime; helps avoid layer bloat
WithWorkdir corresponds to WORKDIR i.e. it's just setting image config
Got it, thanks!
Another great one is WithMountedSecret, my personal favorite, very useful if you need an ssh key or something in the container while it is building 🙂
Great, thanks!