blob: b39553b811d53a42acf810c06cf8d72fe71ce3c1 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Nasere786d962024-06-26 01:08:34 -04002# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserbcd53112025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04005ARG RELEASE
6
Mohammed Naser4ad7b512024-12-11 23:34:48 -05007FROM harbor.atmosphere.dev/docker.io/library/golang:1.20 AS build
Mohammed Naserda994232024-04-13 12:34:01 -04008ARG NETOFFLOAD_GIT_REF=94b8c0fdb0b83bd1b7e14b9a58077a047c78a800
9ADD https://github.com/vexxhost/netoffload.git#${NETOFFLOAD_GIT_REF} /src
10WORKDIR /src
11RUN go build -v -o offloadctl ./cmd/offloadctl/main.go
12
Mohammed Naserbcd53112025-01-15 16:49:44 -050013FROM ${REGISTRY}/ubuntu:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040014RUN <<EOF bash -xe
15apt-get update -qq
16apt-get install -qq -y --no-install-recommends \
17 jq mstflint
18apt-get clean
19rm -rf /var/lib/apt/lists/*
20EOF
21COPY --from=build --link /src/offloadctl /usr/local/bin/offloadctl