Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change base image to distroless #62

Merged
merged 3 commits into from
Jul 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ FROM golang:1.17.9 AS builder
WORKDIR /go/src/github.com/gardener/machine-controller-manager-provider-openstack
COPY . .
RUN make install
RUN ls -la /go/bin

############# base #############
FROM alpine:3.15.4 AS base
FROM gcr.io/distroless/static-debian11:nonroot AS base

RUN apk add --update bash curl tzdata
WORKDIR /

############# machine-controller #############
############# machine-controller-manager-provider-openstack #############
FROM base AS machine-controller
WORKDIR /

COPY --from=builder /go/bin/machine-controller /machine-controller
ENTRYPOINT ["/machine-controller"]