diff --git a/dev/Dockerfile b/dev/Dockerfile deleted file mode 100644 index 18616db3..00000000 --- a/dev/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM golang:1.22 as builder - -WORKDIR /build - -ADD go.mod go.sum /build/ -RUN go mod download - -ADD . /build/ -RUN ls -al - -ARG CGO_ENABLED=0 -# `skaffold debug` sets SKAFFOLD_GO_GCFLAGS to disable compiler optimizations -ARG SKAFFOLD_GO_GCFLAGS -RUN go build -gcflags="$SKAFFOLD_GO_GCFLAGS" -o hcloud-cloud-controller-manager.bin github.com/hetznercloud/hcloud-cloud-controller-manager - -FROM alpine:3.20 - -RUN apk add --no-cache \ - bash \ - ca-certificates - -COPY --from=builder /build/hcloud-cloud-controller-manager.bin /bin/hcloud-cloud-controller-manager -ENTRYPOINT ["/bin/hcloud-cloud-controller-manager"] diff --git a/skaffold.yaml b/skaffold.yaml index 3852a620..e4150c7b 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -5,10 +5,7 @@ metadata: build: artifacts: - image: docker.io/hetznercloud/hcloud-cloud-controller-manager - docker: - dockerfile: dev/Dockerfile - local: - useBuildkit: true + ko: {} insecureRegistries: - localhost:30666