Skip to content

Commit 885f36e

Browse files
authored
Merge pull request #1017 from dlespiau/2019-09-24-nonroot-trailing-ws
scaffold: Remove trailing whitespace in generated Dockerfile
2 parents 5468aea + ef5c0ba commit 885f36e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/scaffold/v2/dockerfile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager
5757
5858
# Use distroless as minimal base image to package the manager binary
5959
# Refer to https://github.com/GoogleContainerTools/distroless for more details
60-
FROM gcr.io/distroless/static:nonroot
60+
FROM gcr.io/distroless/static:nonroot
6161
WORKDIR /
6262
COPY --from=builder /workspace/manager .
6363
USER nonroot:nonroot

testdata/project-v2/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager
1919

2020
# Use distroless as minimal base image to package the manager binary
2121
# Refer to https://github.com/GoogleContainerTools/distroless for more details
22-
FROM gcr.io/distroless/static:nonroot
22+
FROM gcr.io/distroless/static:nonroot
2323
WORKDIR /
2424
COPY --from=builder /workspace/manager .
2525
USER nonroot:nonroot

0 commit comments

Comments
 (0)