Skip to content

Commit b244121

Browse files
committed
build: rebase build off from dind-rootless in order to have image tests succeed
1 parent 30a8225 commit b244121

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
FROM golang:1.25-alpine AS builder
1+
FROM golang:1.25-alpine AS go-builder
22

3+
# This is needed in order for OCI pull tests to succeed
4+
FROM docker:29-dind-rootless AS builder
5+
# FROM docker:29-dind AS builder
6+
7+
COPY --from=go-builder /usr/local/go /usr/local/go
8+
ENV PATH="$PATH:/usr/local/go/bin"
9+
10+
USER root
311
RUN apk add \
412
binutils \
513
coreutils \
@@ -11,6 +19,8 @@ RUN apk add \
1119
libpcap-dev
1220
WORKDIR /work
1321
COPY . .
22+
23+
USER rootless
1424
RUN make all
1525
# Install Intel Firmware for e800 based network cards
1626
ENV ICE_VERSION=1.14.13

0 commit comments

Comments
 (0)