Skip to content

Commit 73077ae

Browse files
fix: build of run stage in Java Dockerfile fails because of a space in between --from and build stage name (#1099)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent 9bc4e8b commit 73077ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/built-in/transformers/dockerfilegenerator/java/jar/templates/Dockerfile.jar-run

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
44
ENV {{$k}} {{$v}}
55
{{- end }}
66
RUN microdnf update && microdnf install --nodocs {{ .JavaPackageName }} && microdnf clean all
7-
COPY {{ if .BuildContainerName }}--from= {{ .BuildContainerName }}{{ end }}{{ .DeploymentFilePath }} .
7+
COPY {{ if .BuildContainerName }}--from={{ .BuildContainerName }} {{ end }}{{ .DeploymentFilePath }} .
88
EXPOSE {{ .Port }}
99
CMD ["java", "-jar", "{{ .DeploymentFilename }}"]

0 commit comments

Comments
 (0)