From cb6d416e59235a6084d11417d7bbb004ee91d487 Mon Sep 17 00:00:00 2001 From: Mingyu Park Date: Wed, 21 Aug 2024 20:08:27 +0900 Subject: [PATCH] Add .dockerignore --- .github/workflows/react.yml | 2 +- backend/.dockerignore | 98 ++++++++++++++++++++++++++++++++++++ backend/users/serializers.py | 1 - frontend/.dockerignore | 43 ++++++++++++++++ 4 files changed, 142 insertions(+), 2 deletions(-) create mode 100644 backend/.dockerignore create mode 100644 frontend/.dockerignore diff --git a/.github/workflows/react.yml b/.github/workflows/react.yml index c7ea48f..ff39de5 100644 --- a/.github/workflows/react.yml +++ b/.github/workflows/react.yml @@ -18,7 +18,7 @@ jobs: working-directory: ./frontend strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [16.x, 18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} diff --git a/backend/.dockerignore b/backend/.dockerignore new file mode 100644 index 0000000..6897ac0 --- /dev/null +++ b/backend/.dockerignore @@ -0,0 +1,98 @@ +# Python bytecode +__pycache__ +*.pyc +*.pyo +*.pyd + +# Python virtual environment +venv/ +*.venv +env/ +*.env + +# Django stuff +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Static files +/static +/media + +# Secret key +*.secret + +# Development and IDE files +.vscode/ +.idea/ +*.swp +*.swo + +# Test coverage +htmlcov/ +.coverage +.coverage.* +.cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ \ No newline at end of file diff --git a/backend/users/serializers.py b/backend/users/serializers.py index cdf2912..15d2475 100644 --- a/backend/users/serializers.py +++ b/backend/users/serializers.py @@ -9,7 +9,6 @@ class Meta: fields = ("name", "avatar", "username") - class PrivateUserSerializer(ModelSerializer): class Meta: diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 0000000..801a5ed --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1,43 @@ +# Dependencies +/node_modules +/.pnp +.pnp.js + +# Testing +/coverage + +# Production +/build + +# Misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +# Logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Editor directories and files +.idea +.vscode +*.swp +*.swo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity \ No newline at end of file