From e1e73ec736ee2fb2440f124bb4ad825094ca4271 Mon Sep 17 00:00:00 2001 From: ProtoPes Date: Mon, 8 Sep 2025 19:07:46 +0300 Subject: [PATCH 1/2] Added ".dockerignore" to reduce the size of a docker image --- .dockerignore | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6ff9d5f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,95 @@ +# Git +.git +.gitignore +.github +.gitattributes +LICENSE +README.md + + +# CI +.codeclimate.yml +.travis.yml +.taskcluster.yml + +# Docker +docker-compose.yml +Dockerfile +.docker +.dockerignore + +# Byte-compiled / optimized / DLL files +**/__pycache__/ +**/*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.cache +nosetests.xml +coverage.xml + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Virtual environment +.env* +.venv/ +venv/ + +# PyCharm +.idea + +# Python mode for VIM +.ropeproject +**/.ropeproject + +# Vim swap files +**/*.swp + +# VS Code +.vscode/ + +# We are passing locales with docker volume anyway +locales/ From 25d9cc744684d760365ace65954e6edc58b95b00 Mon Sep 17 00:00:00 2001 From: Machka Pasla <161734431+machka-pasla@users.noreply.github.com> Date: Mon, 8 Sep 2025 22:35:43 +0500 Subject: [PATCH 2/2] Update .dockerignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit оставил локали, потому что не всегда идет прокидывание локалей через докер вольюм --- .dockerignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 6ff9d5f..47cfd69 100644 --- a/.dockerignore +++ b/.dockerignore @@ -90,6 +90,3 @@ venv/ # VS Code .vscode/ - -# We are passing locales with docker volume anyway -locales/