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