Skip to content

Commit 14df116

Browse files
committed
replace dockerhub images on the upstream dockerfile
Signed-off-by: Daniel Sover <[email protected]>
1 parent 85be6e5 commit 14df116

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: upstream.Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM golang:1.16-alpine as builder
1+
FROM quay.io/fedora/fedora:34-x86_64 as builder
22
LABEL stage=builder
33
WORKDIR /build
44

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
67

78
# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries
89
COPY .git/HEAD .git/HEAD
@@ -20,7 +21,8 @@ COPY test test
2021
RUN CGO_ENABLED=0 make build
2122
RUN make build-util
2223

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
2426
LABEL stage=olm
2527
WORKDIR /
2628
COPY --from=builder /build/bin/olm /bin/olm

0 commit comments

Comments
 (0)