mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-15 19:29:07 +00:00
20 lines
544 B
Docker
20 lines
544 B
Docker
FROM linuxkit/alpine:bc528cf9d4065d2e09aa44ff76909b94cfe8d867 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=edf390c23a4e185ff36daded36575f669f5059f7
|
|
|
|
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/
|
|
|