From 77fa85676c865c2614719746cb70a548285d4ba3 Mon Sep 17 00:00:00 2001 From: Rishab Kumar Date: Tue, 2 Sep 2025 15:51:47 -0400 Subject: [PATCH 1/2] added dockerfile and dockerignore --- .dockerignore | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 11 +++++++ 2 files changed, 100 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0a53e44 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,89 @@ +# Git +.git +.gitignore +.gitattributes + + +# 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/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..264953c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD ["python", "main.py"] \ No newline at end of file From 9352e63530add8c294da03ef5d233ec68fcb71d3 Mon Sep 17 00:00:00 2001 From: Rishab Kumar <45825464+rishabkumar7@users.noreply.github.com> Date: Tue, 16 Sep 2025 10:28:58 -0500 Subject: [PATCH 2/2] Update .dockerignore Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .dockerignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 0a53e44..c32c26a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -11,9 +11,7 @@ # Docker docker-compose.yml -Dockerfile .docker -.dockerignore # Byte-compiled / optimized / DLL files **/__pycache__/