mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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>
23 lines
632 B
JSON
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"
|
|
}
|
|
}
|