diff --git a/book/Miscellaneous/Chapter.ipynb b/book/Miscellaneous/Chapter.ipynb index a6df1db..b17afdb 100644 --- a/book/Miscellaneous/Chapter.ipynb +++ b/book/Miscellaneous/Chapter.ipynb @@ -117,6 +117,37 @@ "\n", "It makes your life easier by enforcing writing descriptive commits." ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Docker Best Practice: Use `.dockerignore`" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "One Docker Tip:\n", + "\n", + "Use a `.dockerignore` file to avoid adding unnecessary files to the image.\n", + "\n", + "This will definitely reduce your Docker image size, but also more safe." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# .dockerignore\n", + ".git\n", + ".cache\n", + "*.md\n", + "!README*.md\n", + "README-secret.md\n", + ".env" + ] } ], "metadata": {