From 0b3c39d437b2974e94295d7ba892ddf7377970ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 9 Dec 2021 18:08:48 +0100 Subject: [PATCH] Add dockerignore file Note there's a difference between gitignore and dockerignore; in .gitignore, files without a leading slash match files in every folder, while in .dockerignore, they match files in the root folder --- .dockerignore | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..a85b5fb6b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,36 @@ +# Version control +.git +.gitignore + +# Confidential information +config/database.yml +config/secrets.yml +config/deploy-secrets.yml +config/maintenance.yml + +# Logfiles and tempfiles. +**/log/* +!**/log/.keep +**/tmp/ + +# Files attached by users +public/system/ +public/ckeditor_assets/ +storage/ + +# Files generated by scripts or compiled +public/sitemap.xml +public/assets/ +public/machine_learning/data/ + +# Bundler config, cache and gemsets +**/.bundle/ +**/.ruby-gemset + +# Files used in local development +**/.byebug_history +**/.DS_Store + +# Test results +spec/examples.txt +coverage/