A module's recipe starts from this image and invokes the compiler out of it, so the compiler had to be here. The same image was also what every module ran in, so every running container on every machine carried a compiler it would never invoke: 23 of the 28 MB of libraries. An earlier attempt to prune the build tools produced a smaller image that nothing could be built on, and the comment defending their return made a workaround look like a decision. One recipe, because the two must agree about the operating system, the language version and the library, and two files drift.
23 lines
381 B
JSON
23 lines
381 B
JSON
{
|
|
"module": "mesh-tools",
|
|
"version": "1",
|
|
"slug": "tools",
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "build",
|
|
"kind": "image",
|
|
"from": "Dockerfile",
|
|
"target": "toolchain"
|
|
},
|
|
{
|
|
"name": "runtime",
|
|
"kind": "image",
|
|
"from": "Dockerfile",
|
|
"target": "runtime"
|
|
}
|
|
]
|
|
},
|
|
"resources": []
|
|
}
|