blob: de0da4353761296dcde453f76eb08e58f4430d3f [file] [log] [blame]
Mohammed Nasercc6868b2025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Naser735efe22024-06-26 23:46:25 -04003# Atmosphere-Rebuild-Time: 2024-06-26T17:38:39Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Nasercc6868b2025-01-18 15:49:44 -05005FROM golang AS build
Mohammed Naserda994232024-04-13 12:34:01 -04006ARG NETOFFLOAD_GIT_REF=94b8c0fdb0b83bd1b7e14b9a58077a047c78a800
7ADD https://github.com/vexxhost/netoffload.git#${NETOFFLOAD_GIT_REF} /src
8WORKDIR /src
9RUN go build -v -o offloadctl ./cmd/offloadctl/main.go
10
Mohammed Nasercc6868b2025-01-18 15:49:44 -050011FROM ubuntu
Mohammed Naserda994232024-04-13 12:34:01 -040012RUN <<EOF bash -xe
13apt-get update -qq
14apt-get install -qq -y --no-install-recommends \
15 jq mstflint
16apt-get clean
17rm -rf /var/lib/apt/lists/*
18EOF
19COPY --from=build --link /src/offloadctl /usr/local/bin/offloadctl