Deny-all with explicit allows (Cargo files, src/, init/, kernel/config). Previously the full linux submodule was shipped into every build context.
This commit is contained in:
1 parent
26ba83e7e3
commit
d034c8b5ce
1 file changed
+10
@@ -0,0 +1,10 @@
|
|||||||
|
# Build context: deny everything, then allow only what the Containerfile needs.
|
||||||
|
# Keeps the linux submodule (and example/, .gitea/, README, etc.) out of the build.
|
||||||
|
*
|
||||||
|
!Cargo.toml
|
||||||
|
!Cargo.lock
|
||||||
|
!src/
|
||||||
|
!src/**
|
||||||
|
!init/
|
||||||
|
!init/**
|
||||||
|
!kernel/config
|
||||||
Reference in new issue
Block a user