Files
kata-containers/rootfs-builder/alpine/Dockerfile.in
James O. D. Hunt c1d22f98f6 rootfs: Default to host architecture
Don't default to a hard-coded Intel architecture - default to the host
architecture.

This requires the `coreutils` package to be installed both inside each
docker image (for `USE_DOCKER=true`) and in the host environments.

Added missing SPDX headers to `Dockerfile` templates to pacify the CI checks.

Fixes #100.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-05-25 10:09:28 +01:00

11 lines
376 B
Docker

#
# Copyright (c) 2018 HyperHQ Inc.
#
# SPDX-License-Identifier: Apache-2.0
From golang:@GO_VERSION@-alpine3.7
# The "coreutils" package on alpine for reasons unknown does not provide arch(1), so simulate it.
RUN apk update && apk add git make bash gcc musl-dev linux-headers apk-tools-static && \
echo -e '#!/bin/sh\nuname -m' > /usr/bin/arch && chmod +x /usr/bin/arch