Skip to content

Commit 71e189d

Browse files
authored
Merge pull request #198 from lichuqiang/image_rollback
Rollback base image to ubuntu
2 parents b2722c7 + e4f95e9 commit 71e189d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/kubebuilder/initproject/dockerfile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o controller-manager ./cm
8989
RUN go test ./pkg/... ./cmd/...
9090
9191
# Copy the controller-manager into a thin image
92-
FROM scratch
92+
FROM ubuntu:latest
9393
# RUN apk --no-cache add ca-certificates
9494
WORKDIR /root/
9595
COPY --from=builder /go/src/{{ .Repo }}/controller-manager .

samples/memcached-api-server/Dockerfile.controller

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o controller-manager ./cm
2727
RUN go test ./pkg/... ./cmd/...
2828

2929
# Copy the controller-manager into a thin image
30-
FROM scratch
30+
FROM ubuntu:latest
3131
# RUN apk --no-cache add ca-certificates
3232
WORKDIR /root/
3333
COPY --from=builder /go/src/github.com/kubernetes-sigs/kubebuilder/samples/memcached-api-server/controller-manager .

0 commit comments

Comments
 (0)