From 3d871250622086cf5cd06d1254134051e31293b0 Mon Sep 17 00:00:00 2001 From: Artsiom Siamashka Date: Mon, 9 Feb 2026 17:03:18 +0100 Subject: [PATCH 1/3] Added dockerignore and updated gitignore files, update docker image version --- .dockerignore | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 31 ++++++++++++++++++++++++++++++- Dockerfile | 18 +++++++++--------- 3 files changed, 90 insertions(+), 10 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0d76048 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,51 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class +*.pyo +*.pyd +*.pyl +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.tox/ +.nox/ +.coverage +coverage.xml +htmlcov/ +.cache/ + +# Virtual environments +.venv/ +venv/ +env/ +ENV/ + +# Build/artifacts +dist/ +build/ +*.egg-info/ +.eggs/ + +# Logs +*.log + +# IDEs and editors +.vscode/ +.idea/ +*.sublime-project +*.sublime-workspace +*.code-workspace +.devcontainer/ + +# OS files +.DS_Store +Thumbs.db + +# Git +.git/ +.gitignore + +# Docker +Dockerfile +.dockerignore diff --git a/.gitignore b/.gitignore index 2eea525..3d452c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,30 @@ -.env \ No newline at end of file +.env + +# Python +__pycache__/ +*.py[cod] +*.pyd +*.so +*.egg-info/ +dist/ +build/ +.eggs/ +*.egg +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.coverage +htmlcov/ +.tox/ +.nox/ +venv/ +.venv/ +env/ +ENV/ + +# IDEs/editors +.vscode/ +.idea/ +*.sublime-project +*.sublime-workspace +.devcontainer/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 2500655..db55fd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -FROM python:3.12-rc-slim +FROM python:3.12-slim WORKDIR /app -RUN pip install pymongo \ - dynaconf \ - pydantic \ - pymysql \ - mongoengine \ - dict_hash \ - requests +RUN pip install pymongo==4.16.0 \ + dynaconf==3.2.12 \ + pydantic==2.15.5 \ + pymysql==1.1.2 \ + mongoengine==0.29.1 \ + dict_hash==1.3.7 \ + requests==2.32.5 -COPY ./ ./ \ No newline at end of file +COPY . . \ No newline at end of file From e266d252c928b2859888d58b1b60a0d9fcf3dd54 Mon Sep 17 00:00:00 2001 From: Artsiom Siamashka Date: Mon, 9 Feb 2026 17:13:06 +0100 Subject: [PATCH 2/3] Added requirements.txt, updated Dockerfile --- Dockerfile | 11 +++-------- requirements.txt | 7 +++++++ 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index db55fd8..2e6d549 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,7 @@ FROM python:3.12-slim WORKDIR /app -RUN pip install pymongo==4.16.0 \ - dynaconf==3.2.12 \ - pydantic==2.15.5 \ - pymysql==1.1.2 \ - mongoengine==0.29.1 \ - dict_hash==1.3.7 \ - requests==2.32.5 +COPY ./requirements.txt . +RUN pip install -r requirements.txt -COPY . . \ No newline at end of file +COPY . . diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e76114d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +pymongo==4.16.0 +dynaconf==3.2.12 +pydantic==2.12.5 +pymysql==1.1.2 +mongoengine==0.29.1 +dict_hash==1.3.7 +requests==2.32.5 \ No newline at end of file From 7e8575f9ea3df44956d7688731696b99bbc4b8c5 Mon Sep 17 00:00:00 2001 From: Artsiom Simashka Date: Tue, 17 Mar 2026 16:51:17 +0100 Subject: [PATCH 3/3] Added CMD instruction to Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2e6d549..dc52b8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,3 +6,5 @@ COPY ./requirements.txt . RUN pip install -r requirements.txt COPY . . + +CMD ["tail","-f","/dev/null"]