From 32190cb8d5046a3aa3671871dd58f629c1a4ff3f Mon Sep 17 00:00:00 2001 From: Michel Jonathan Schmitz Date: Tue, 16 Jul 2019 13:33:49 +0200 Subject: [PATCH] build: update dockerignore to a whitelist --- .dockerignore | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index 109b4eb9..717f9ea2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,10 +1,7 @@ -# Exclude the following directories, when copying into an image -.git -.gitlab -.nyc_output -.vscode -coverage +# Ignore everything +** -# Exclude the following files, when copying into an image -.gitignore -.gitlab-ci.yml \ No newline at end of file +# Allow files and directories +!/lib/** +!/node_modules/** +!/LICENSE