blob: 66d1c8d1a9108848a272c22c8c183c3a083c7021 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
vexxhost-botc2fd4282024-06-26 07:04:25 +02002# Atmosphere-Rebuild-Time: 2024-06-25T13:53:44Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Nasere5b6ff72025-01-15 16:49:44 -05004ARG REGISTRY
Mohammed Naserd30f18d2024-04-17 01:20:43 -04005ARG RELEASE
6
Yaguang Tang0953b612024-12-13 04:14:34 +08007FROM 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 Nasere5b6ff72025-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