flattens layers
This commit is contained in:
parent
01b3fe2de5
commit
9353ec7e06
@ -69,7 +69,7 @@ RUN apk add --no-cache --virtual=.packagecache ca-certificates && \\
|
|||||||
apk del .packagecache
|
apk del .packagecache
|
||||||
"""
|
"""
|
||||||
writeFile(file: workspace + "/Dockerfile", text: DF)
|
writeFile(file: workspace + "/Dockerfile", text: DF)
|
||||||
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/alpine:latest\""
|
sh "/kaniko/executor --cleanup --context \"${workspace}\" -f \"${workspace}/Dockerfile\" --destination \"${repository}/library/alpine:latest\" --single-snapshot"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user