Skip to content

Commit

Permalink
Add dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
baniasbaabe committed Mar 31, 2024
1 parent ffe825b commit 6f3cf77
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions book/Miscellaneous/Chapter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 6f3cf77

Please sign in to comment.