mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-25 17:24:38 +01:00
This reverts commit 9d78bf9086.
Golang binaries are built statically by default, unless linking against
CGO, which we do. In this case we dynamically link against glibc,
causing us troubles when running a binary built with Ubuntu 22.04 on
Ubuntu 20.04 (which will still be supported for the next few years ...)
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
27 lines
644 B
Docker
27 lines
644 B
Docker
# Copyright (c) 2021 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM ubuntu:20.04
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
ca-certificates \
|
|
curl \
|
|
gcc \
|
|
git \
|
|
make \
|
|
musl-tools \
|
|
protobuf-compiler \
|
|
sudo && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/
|
|
|
|
COPY install_go_rust.sh /usr/bin/install_go_rust.sh
|
|
ARG GO_VERSION
|
|
ARG RUST_VERSION
|
|
RUN install_go_rust.sh "${GO_VERSION}" "${RUST_VERSION}"
|
|
ENV PATH=/usr/local/go/bin:${PATH}
|
|
ENV PATH=/root/.cargo/bin/:${PATH}
|