mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-29 19:24:23 +01:00
Removed all errors/warnings pointed out by hadolint version 2.7.0, except for the following ignored rules: - "DL3008 warning: Pin versions in apt get install" - "DL3041 warning: Specify version with `dnf install -y <package>-<version>`" - "DL3033 warning: Specify version with `yum install -y <package>-<version>`" - "DL3048 style: Invalid label key" - "DL3003 warning: Use WORKDIR to switch to a directory" - "DL3018 warning: Pin versions in apk add. Instead of apk add <package> use apk add <package>=<version>" - "DL3037 warning: Specify version with zypper install -y <package>[=]<version>" Fixes #3107 Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
44 lines
953 B
Plaintext
44 lines
953 B
Plaintext
#
|
|
# Copyright (c) 2020 ARM Limited
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
ARG IMAGE_REGISTRY=docker.io
|
|
#ubuntu: docker image to be used to create a rootfs
|
|
#@OS_VERSION@: Docker image version to build this dockerfile
|
|
FROM ${IMAGE_REGISTRY}/ubuntu:@OS_VERSION@
|
|
|
|
# This dockerfile needs to provide all the componets need to build a rootfs
|
|
# Install any package need to create a rootfs (package manager, extra tools)
|
|
|
|
# Avoid tzdata setup
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
# RUN commands
|
|
RUN apt-get update && apt-get install -y \
|
|
autoconf \
|
|
automake \
|
|
binutils \
|
|
build-essential \
|
|
chrony \
|
|
coreutils \
|
|
curl \
|
|
debianutils \
|
|
debootstrap \
|
|
g++ \
|
|
gcc \
|
|
git \
|
|
libc6-dev \
|
|
libstdc++-8-dev \
|
|
m4 \
|
|
make \
|
|
sed \
|
|
systemd \
|
|
tar \
|
|
vim && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists/
|
|
|
|
# This will install the proper packages to build Kata components
|
|
@INSTALL_MUSL@
|
|
@INSTALL_RUST@
|