forked from images/gitea-image-forge
Add workdir to distoless.toml format
This commit is contained in:
parent
3dd93ea596
commit
edf94c9db8
4
build.py
4
build.py
@ -83,6 +83,10 @@ class Distroless:
|
||||
for option in ["cmd", "entrypoint", "user"]:
|
||||
if value := dd.get(option):
|
||||
self.config_options.append(f"--{option}={value}")
|
||||
if value := dd.get("workdir"):
|
||||
self.config_options.append(f"--workingdir={value}")
|
||||
elif value := dd.get("workingdir"):
|
||||
self.config_options.append(f"--workingdir={value}")
|
||||
|
||||
|
||||
class DockerBuilder:
|
||||
|
Loading…
Reference in New Issue
Block a user