Docker builder should support separate dockerfiles for dev
and debug
#5844
Labels
area/config
build/docker
kind/design discussion
kind/feature-request
priority/p2
May take a couple of releases
Users expect that
skaffold dev
andskaffold debug
with file-sync will ✨magically✨ rebuild or relaunch their applications built using the Docker builder.Although we do expose the
SKAFFOLD_RUN_MODE
as a build argument for docker builds, it is difficult to craft a Dockerfile rules to take advantage of it.I can see two approaches:
${dockerfile}.${runMode}
(e.g.,Dockerfile.dev
orDockerfile.debug
). But it's impossible for the user to override.SKAFFOLD_RUN_MODE
environment variable.docker:
definition to allow specifying separatedevDockerfile
anddebugDockerfile
items.The text was updated successfully, but these errors were encountered: