From 9b9e28c53a489fac9a22dd87138f333d84d22d6c Mon Sep 17 00:00:00 2001 From: Timshel Date: Wed, 14 Aug 2024 19:04:04 +0200 Subject: [PATCH] Switch to Whitelisting in .dockerignore --- .dockerignore | 49 ++++++++++++------------------------------------- 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/.dockerignore b/.dockerignore index c7ffe132cf3..6d623ede450 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,40 +1,15 @@ -# Local build artifacts -target +// Blacklist everything +* -# Data folder -data - -# Misc -.env -.env.template -.gitattributes -.gitignore -rustfmt.toml - -# IDE files -.vscode -.idea -.editorconfig -*.iml - -# Documentation -.github -*.md -*.txt -*.yml -*.yaml - -# Docker -hooks -tools -Dockerfile -.dockerignore -docker/** +// Whitelist what is needed +!.git !docker/healthcheck.sh !docker/start.sh - -# Web vault -web-vault - -# Vaultwarden Resources -resources +!migrations +!src + +!build.rs +!Cargo.lock +!Cargo.toml +!rustfmt.toml +!rust-toolchain.toml