File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.16-alpine as builder
1
+ FROM quay.io/fedora/fedora:34-x86_64 as builder
2
2
LABEL stage=builder
3
3
WORKDIR /build
4
4
5
- RUN apk update && apk add bash make git mercurial jq && apk upgrade
5
+ # install dependencies and go 1.16
6
+ RUN dnf update -y && dnf install -y bash make git mercurial jq wget golang && dnf upgrade -y
6
7
7
8
# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries
8
9
COPY .git/HEAD .git/HEAD
@@ -20,7 +21,8 @@ COPY test test
20
21
RUN CGO_ENABLED=0 make build
21
22
RUN make build-util
22
23
23
- FROM alpine:latest
24
+ # use debug tag to keep a shell around for backwards compatibility with the previous alpine image
25
+ FROM gcr.io/distroless/static:debug
24
26
LABEL stage=olm
25
27
WORKDIR /
26
28
COPY --from=builder /build/bin/olm /bin/olm
You can’t perform that action at this time.
0 commit comments