Set workdir also on step image

Otherwise with DOCKER_SQUASH=true it wouldn't be coherent on where to
find the package files
This commit is contained in:
Ettore Di Giacinto
2020-11-28 12:04:14 +01:00
parent ca994b07ab
commit 44d33eceba
4 changed files with 5 additions and 0 deletions

View File

@@ -242,6 +242,7 @@ RUN ` + s
func (cs *LuetCompilationSpec) RenderStepImage(image string) (string, error) {
spec := `
FROM ` + image + `
WORKDIR /luetbuild
ENV PACKAGE_NAME=` + cs.Package.GetName() + `
ENV PACKAGE_VERSION=` + cs.Package.GetVersion() + `
ENV PACKAGE_CATEGORY=` + cs.Package.GetCategory()