Files
servo/.devcontainer/devcontainer.json
Jonathan Schwender 73af1bf099 devcontainer: Use our own dockerfile (#42166)
Switch to using our own dockerfile, and install the required
dependencies into our image.
In follow-ups we can build the docker image in CI, so that users can
download a prebuilt docker image to save time.

Testing: Manually tested by opening servo in the devcontainer and
running `./mach build`

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2026-01-28 05:18:40 +00:00

23 lines
632 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": "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"
}
}