mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-08 10:21:27 +00:00
pkg/modprobe from linuxkit/alpine base, using established multistage build onto scratch pattern
Signed-off-by: Isaac Rodman <isaac@eyz.us>
This commit is contained in:
committed by
Isaac Rodman
parent
3b097e6056
commit
0cce316caa
13
pkg/modprobe/Dockerfile
Normal file
13
pkg/modprobe/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
busybox
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM scratch
|
||||
ENTRYPOINT []
|
||||
CMD []
|
||||
WORKDIR /
|
||||
COPY --from=mirror /out/ /
|
||||
LABEL org.mobyproject.config='{"binds": ["/lib/modules:/lib/modules", "/sys:/sys"], "capabilities": ["CAP_SYS_MODULE"]}'
|
3
pkg/modprobe/Makefile
Normal file
3
pkg/modprobe/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
IMAGE=modprobe
|
||||
|
||||
include ../package.mk
|
Reference in New Issue
Block a user