mirror of
https://github.com/apple/container.git
synced 2026-09-12 10:45:42 +00:00
Fixes #296 Today the kernel subdirectory is somewhat useless. The dockerfile we had tried to use an image that isn't actually on ghcr, so everything would kind of just crap out. This change swaps things so that we build a local image that has all the bits needed to compile the kernel, and then uses that image to build the resulting kernel and plop it in the current working directory. This change does add a reliance on `container` being installed however, but for folks that need to build a custom kernel this doesn't seem like too much of an issue to me.
27 lines
544 B
Docker
27 lines
544 B
Docker
FROM ubuntu:focal
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
autoconf \
|
|
bc \
|
|
binutils-multiarch \
|
|
binutils-aarch64-linux-gnu \
|
|
bison \
|
|
flex \
|
|
gcc \
|
|
xz-utils \
|
|
gcc-aarch64-linux-gnu \
|
|
git \
|
|
libncurses-dev \
|
|
make \
|
|
openssl \
|
|
python-is-python3 \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY sources.list /etc/apt/sources.list
|
|
|
|
RUN apt-get update \
|
|
&& dpkg --add-architecture arm64 \
|
|
&& apt-get install -y libelf-dev:arm64 \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* |