From 0e56e4f9ff2925d0755908f227f2b5fc9a1c4c78 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Sun, 1 May 2022 03:12:35 +0900 Subject: [PATCH] release/Dockerfile: update Ubuntu to 22.04 for supporting riscv64 Also update xx to 1.1.0 Signed-off-by: Akihiro Suda --- .github/workflows/release/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release/Dockerfile b/.github/workflows/release/Dockerfile index b00f41468..de0439e43 100644 --- a/.github/workflows/release/Dockerfile +++ b/.github/workflows/release/Dockerfile @@ -12,20 +12,20 @@ # See the License for the specific language governing permissions and # limitations under the License. -ARG UBUNTU_VERSION=18.04 +ARG UBUNTU_VERSION=22.04 ARG BASE_IMAGE=ubuntu:${UBUNTU_VERSION} ARG GO_VERSION ARG GO_IMAGE=golang:${GO_VERSION} FROM --platform=$BUILDPLATFORM $GO_IMAGE AS go -FROM --platform=$BUILDPLATFORM tonistiigi/xx@sha256:425941eb25cc113009b1c651bd275e04593cea12c48311fe8ace6ceeecdcc645 AS xx +FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.1.0@sha256:76a8510b1798f66fcc87e7ec2f4684aa1b16756df2a397ec307b9efb6023f6c5 AS xx FROM --platform=$BUILDPLATFORM ${BASE_IMAGE} AS base COPY --from=xx / / SHELL ["/bin/bash", "-xec"] RUN apt-get update && \ - apt-get install -y git pkg-config + apt-get install -y dpkg-dev git make pkg-config ARG TARGETPLATFORM -RUN xx-apt-get install -y libseccomp-dev btrfs-progs gcc +RUN xx-apt-get install -y libseccomp-dev libbtrfs-dev gcc ENV PATH=/usr/local/go/bin:$PATH ENV GOPATH=/go ENV CGO_ENABLED=1