devcontainer: Add a dockerignore (#43127)

Rename the dockerfile and add a dockerignore. This reduces the size of
the build-context greatly.
Renaming is a preparation for later adding more possible dockerfiles
(e.g. fedora based etc).
We choose the filename based `.dockerignore` files over a
`.dockerignore` in the root folder mainly to reduce clutter in the root
folder.
This addresses the problem of large build context raised on zulip by
@glyn.

Testing: Manually tested by building the image locally.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
Jonathan Schwender
2026-03-10 10:20:40 +01:00
committed by GitHub
parent b9b95e34a2
commit 4fa57ff0ff
3 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
*
!/.devcontainer
!/python/servo/platform/linux_packages

View File

@@ -3,7 +3,7 @@
{
"name": "Ubuntu",
"build": {
"dockerfile": "Dockerfile",
"dockerfile": "Ubuntu.Dockerfile",
"context": ".."
},