Files
servo/.devcontainer/devcontainer.json
Jonathan Schwender 4fa57ff0ff 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>
2026-03-10 09:20:40 +00:00

23 lines
639 B
JSON

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
"build": {
"dockerfile": "Ubuntu.Dockerfile",
"context": ".."
},
// Most dependencies are installed in the image, but we run mach bootstrap to ensure
// the environment matches what's expected in the current servo version, which might
// have changed since the image was built.
"postCreateCommand":
"./mach bootstrap --yes",
"containerEnv": {
"CC": "clang",
"CXX": "clang++",
"UV_PROJECT_ENVIRONMENT": ".devcontainer-venv"
}
}