diff --git a/cmd/generate/dockerfile-templates/DefaultDockerfile.template b/cmd/generate/dockerfile-templates/DefaultDockerfile.template index 1e1b94c3..e0a2be0d 100644 --- a/cmd/generate/dockerfile-templates/DefaultDockerfile.template +++ b/cmd/generate/dockerfile-templates/DefaultDockerfile.template @@ -21,7 +21,7 @@ ARG VERSION={{.version}} {{- end }} COPY --from=builder /usr/bin/main {{.app_file}} -COPY --from=builder /workspace/LICENSE /licenses/ +COPY LICENSE /licenses/ USER 65532 diff --git a/cmd/generate/dockerfile-templates/FuncUtilDockerfile.template b/cmd/generate/dockerfile-templates/FuncUtilDockerfile.template index a461e04e..88751af8 100644 --- a/cmd/generate/dockerfile-templates/FuncUtilDockerfile.template +++ b/cmd/generate/dockerfile-templates/FuncUtilDockerfile.template @@ -23,7 +23,7 @@ RUN microdnf install socat tar {{- end }} COPY --from=builder /usr/bin/main {{.app_file}} -COPY --from=builder /workspace/LICENSE /licenses/ +COPY LICENSE /licenses/ RUN ln -s {{.app_file}} /usr/local/bin/deploy && \ ln -s {{.app_file}} /usr/local/bin/scaffold && \ diff --git a/pkg/project/testoutput/openshift/ci-operator/knative-images/discover/Dockerfile b/pkg/project/testoutput/openshift/ci-operator/knative-images/discover/Dockerfile index 23e5ab9c..b808fe85 100755 --- a/pkg/project/testoutput/openshift/ci-operator/knative-images/discover/Dockerfile +++ b/pkg/project/testoutput/openshift/ci-operator/knative-images/discover/Dockerfile @@ -19,7 +19,7 @@ RUN microdnf update tzdata -y && microdnf reinstall tzdata -y RUN microdnf install rsync COPY --from=builder /usr/bin/main /usr/bin/discover -COPY --from=builder /workspace/LICENSE /licenses/ +COPY LICENSE /licenses/ USER 65532