From 5db9e195fab3ad96d4998cffd7c34c13eb7d9700 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sat, 5 Sep 2020 11:49:37 +0800 Subject: [PATCH] .dockerignore: mirror .gitignore Ignore sensitive files and folders. --- .dockerignore | 64 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index db54b2f6..62945607 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,64 @@ -# Ignore files not needed for building and running to keep image size low. -.git/ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Secrets +*.secret + +# Dependency directories node_modules/ +# Git directory +.git/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# macOS custom attributes +.DS_Store + +# VisualStudio +.vscode + +# Intellij +.idea + +# Personal flood config +config.js + +# Static assets +dist/assets + +# Runtime files +run/ + +# Vim temp files +*.swp + +# JSDoc output +docs/ +out/