From 419eec2baa85ffa31fc8d3ce3f9f5f3fb2a96b51 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 11 Jan 2023 16:18:12 +0100 Subject: [PATCH] feat: use allowlist based .dockerignore --- api/.dockerignore | 76 ++++++----------------------------------------- 1 file changed, 9 insertions(+), 67 deletions(-) diff --git a/api/.dockerignore b/api/.dockerignore index 2de0d12d8..3565ad7eb 100644 --- a/api/.dockerignore +++ b/api/.dockerignore @@ -1,70 +1,12 @@ -### OSX ### -.DS_Store -.AppleDouble -.LSOverride +# Exclude everything and allow only the necessary files +* +!/compose/ +!/config/ +!/funkwhale_api/ +!/manage.py +!/poetry.lock +!/pyproject.toml -### SublimeText ### -# cache files for sublime text -*.tmlanguage.cache -*.tmPreferences.cache -*.stTheme.cache - -# workspace files are user-specific -*.sublime-workspace - -# project files should be checked into the repository, unless a significant -# proportion of contributors will probably not be using SublimeText -# *.sublime-project - -# sftp configuration file -sftp-config.json - -# Basics +# Python *.py[cod] __pycache__ - -# Logs -*.log -pip-log.txt - -# Unit test / coverage reports -.coverage -.tox -nosetests.xml -htmlcov - -# Translations -*.mo -*.pot - -# Pycharm -.idea - -# Vim - -*~ -*.swp -*.swo - -# npm -front/node_modules/ - -# Compass -.sass-cache - -# virtual environments -.env - -# User-uploaded media -funkwhale_api/media/ - -# Hitch directory -tests/.hitch - -# MailHog binary -mailhog - -*.sqlite3 -music -media -data