mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 20:58:49 +00:00
except for bpftrace, since it does not compile: https://github.com/linuxkit/linuxkit/pull/3230 Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
20 lines
544 B
Docker
20 lines
544 B
Docker
FROM linuxkit/alpine:518c2ed0f398c5508969ac5e033607201fb419ed AS build
|
|
RUN apk add --no-cache git
|
|
|
|
# Make sure you also update the FW_COMMIT in ../firmware/Dockerfile
|
|
ENV FW_URL=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
|
|
ENV FW_COMMIT=d1147327232ec4616a66ab898df84f9700c816c1
|
|
|
|
RUN mkdir -p /out/lib && \
|
|
cd /out/lib && \
|
|
git clone ${FW_URL} firmware && \
|
|
cd firmware && \
|
|
git checkout ${FW_COMMIT} && \
|
|
rm -rf .git
|
|
|
|
FROM scratch
|
|
WORKDIR /
|
|
ENTRYPOINT []
|
|
COPY --from=build /out/lib/ /lib/
|
|
|