mirror of
https://github.com/54shady/kernel_drivers_examples.git
synced 2025-08-11 23:32:00 +00:00
Docker : build image via argument
This commit is contained in:
@ -1,4 +1,14 @@
|
||||
FROM x86/ubuntu:2204
|
||||
# build with default argument
|
||||
# build . -t tagname
|
||||
ARG BASE_IMAGE=x86/ubuntu:2004
|
||||
FROM $BASE_IMAGE
|
||||
# build with argument in commandline
|
||||
# build . -t tagnem --build-arg x86/ubuntu:2204
|
||||
|
||||
# ubuntu 20.04 using dwarves
|
||||
# ubuntu 22.04 using pahole
|
||||
# build . -t tagnem --build-arg x86/ubuntu:2204 --build-arg LAYOUTTOOL=pahole
|
||||
ARG LAYOUTTOOL=dwarves
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
@ -6,4 +16,4 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||
apt-get -y --no-install-recommends install libncurses-dev gawk flex \
|
||||
bison openssl libssl-dev dkms \
|
||||
libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm libcap2-dev \
|
||||
rsync bc pahole git clang binutils-dev dpkg-dev
|
||||
rsync bc $LAYOUTTOOL git clang binutils-dev dpkg-dev
|
||||
|
Reference in New Issue
Block a user