diff --git a/.changeset/tame-mangos-lie.md b/.changeset/tame-mangos-lie.md new file mode 100644 index 000000000..65c17c362 --- /dev/null +++ b/.changeset/tame-mangos-lie.md @@ -0,0 +1,6 @@ +--- +'skuba': patch +--- + +Ignore the .git folder when copying into the Docker container. +This should decrease build times. diff --git a/.dockerignore b/.dockerignore index bc56d0a6e..5a3a77b24 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ +.git/ .idea/ .serverless/ .vscode/ diff --git a/src/cli/configure/analysis/__snapshots__/project.test.ts.snap b/src/cli/configure/analysis/__snapshots__/project.test.ts.snap index 20675e8ef..fdf641881 100644 --- a/src/cli/configure/analysis/__snapshots__/project.test.ts.snap +++ b/src/cli/configure/analysis/__snapshots__/project.test.ts.snap @@ -4,6 +4,7 @@ exports[`diffFiles works from scratch 1`] = ` Object { ".dockerignore": Object { "data": "# managed by skuba +.git/ .idea/ .serverless/ .vscode/ diff --git a/template/base/_.dockerignore b/template/base/_.dockerignore index c2aa9db21..604937ba6 100644 --- a/template/base/_.dockerignore +++ b/template/base/_.dockerignore @@ -1,4 +1,5 @@ # managed by skuba +.git/ .idea/ .serverless/ .vscode/