mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-28 18:54:37 +01:00
As we'd like to ship the content from src/tools, we need to build them
in the very same way we build the other components, and the first step
is providing scripts that can build those inside a container.
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
(cherry picked from commit 6ef42db5ec)
21 lines
471 B
Docker
21 lines
471 B
Docker
# Copyright (c) 2023 Intel
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM alpine:3.18
|
|
ARG GO_TOOLCHAIN
|
|
ARG RUST_TOOLCHAIN
|
|
|
|
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
|
RUN apk --no-cache add \
|
|
bash \
|
|
curl \
|
|
gcc \
|
|
git \
|
|
libcap-ng-static \
|
|
libseccomp-static \
|
|
make \
|
|
musl-dev \
|
|
protoc && \
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_TOOLCHAIN}
|