From 84b9f4c185d2915b8536884969a0615df3a27205 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Mon, 8 Dec 2025 22:17:22 +0000 Subject: [PATCH 1/4] chore(dagger/pelias): yarn install --frozen-lockfile --ignore-scripts --- dagger/pelias.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagger/pelias.go b/dagger/pelias.go index 447e9d8ca..7de390c7f 100644 --- a/dagger/pelias.go +++ b/dagger/pelias.go @@ -24,7 +24,7 @@ func (h *Headway) Pelias(ctx context.Context) *Pelias { WithDirectory("generate_config", h.ServiceDir("pelias").Directory("generate_config")). WithWorkdir("generate_config"). WithFile("areas.csv", h.ServicesDir.File("areas.csv")). - WithExec([]string{"yarn", "install"}). + WithExec([]string{"yarn", "install", "--frozen-lockfile", "--ignore-scripts"}). WithExec([]string{"yarn", "build"}). WithExec([]string{"sh", "-c", fmt.Sprintf("bin/generate-pelias-config areas.csv '%s' '%s' > pelias.json", h.Area, countriesStr)}). File("pelias.json") From edd64fa5af326abb4ce8e63409671d6a4f2f39e2 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Mon, 8 Dec 2025 22:31:32 +0000 Subject: [PATCH 2/4] chore(dagger/pelias): strip devDependencies from final image --- dagger/pelias.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dagger/pelias.go b/dagger/pelias.go index 7de390c7f..5f400c4d7 100644 --- a/dagger/pelias.go +++ b/dagger/pelias.go @@ -27,6 +27,8 @@ func (h *Headway) Pelias(ctx context.Context) *Pelias { WithExec([]string{"yarn", "install", "--frozen-lockfile", "--ignore-scripts"}). WithExec([]string{"yarn", "build"}). WithExec([]string{"sh", "-c", fmt.Sprintf("bin/generate-pelias-config areas.csv '%s' '%s' > pelias.json", h.Area, countriesStr)}). + // Strip devDependencies from final image + WithExec([]string{"yarn", "install", "--prod", "--frozen-lockfile", "--ignore-scripts"}). File("pelias.json") return &Pelias{Config: config, Headway: h} From d26973c71cbf69d3a665dfe45d7347dff1e8eedb Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Mon, 8 Dec 2025 22:32:53 +0000 Subject: [PATCH 3/4] chore(dagger/tileserver): yarn install --ignore-scripts --- dagger/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dagger/main.go b/dagger/main.go index 69a32ef9d..d706c3953 100644 --- a/dagger/main.go +++ b/dagger/main.go @@ -234,7 +234,8 @@ func (h *Headway) TileserverServeContainer(ctx context.Context) *dagger.Containe WithFile("/app/package.json", h.ServiceDir("tileserver").File("package.json")). WithFile("/app/yarn.lock", h.ServiceDir("tileserver").File("yarn.lock")). WithWorkdir("/app"). - WithExec([]string{"yarn", "install", "--prod", "--frozen-lockfile"}) + WithExec([]string{"yarn", "install", "--prod", "--frozen-lockfile", "--ignore-scripts"}). + WithExec([]string{"sh", "-c", "cd node_modules/sqlite3 && yarn run install"}) builtAssets := h.TileserverAssets(ctx) From ad48b6610fbc35d764fff3792690470b6d9ec820 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Mon, 8 Dec 2025 22:43:02 +0000 Subject: [PATCH 4/4] chore(dagger/frontend): strip devDependencies from final image; yarn install --ignore-scripts --- dagger/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dagger/main.go b/dagger/main.go index d706c3953..99f85597c 100644 --- a/dagger/main.go +++ b/dagger/main.go @@ -486,8 +486,10 @@ func (h *Headway) WebBuild(ctx context.Context, } return container. - WithExec([]string{"yarn", "install", "--frozen-lockfile"}). + WithExec([]string{"yarn", "install", "--frozen-lockfile", "--ignore-scripts"}). WithExec([]string{"yarn", "build"}). + // Strip devDependencies from final image + WithExec([]string{"yarn", "install", "--frozen-lockfile", "--ignore-scripts", "--prod"}). Directory("/www-app/dist/spa") }