From c887cfa4e326c362ecfa3c39b5ddab2984852c66 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Wed, 19 Jan 2022 09:59:06 -0800 Subject: [PATCH] Universe: yarn: leverage alpine packages for using base image Signed-off-by: Sam Alba --- pkg/universe.dagger.io/yarn/yarn.cue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/universe.dagger.io/yarn/yarn.cue b/pkg/universe.dagger.io/yarn/yarn.cue index 05467d78..46e34b7e 100644 --- a/pkg/universe.dagger.io/yarn/yarn.cue +++ b/pkg/universe.dagger.io/yarn/yarn.cue @@ -47,14 +47,13 @@ import ( // Yarn version // yarnVersion: *"=~1.22" | string - image: docker.#Image | *{ - alpine.#Build & { + // FIXME: custom base image not supported + image: alpine.#Build & { packages: { - "bash": {} - "yarn": {} + bash: {} + yarn: {} } } - } // Run yarn in a containerized build environment command: bash.#Run & {