From ab0cbabc9933bcc268be5d72f18fb5ad0db87314 Mon Sep 17 00:00:00 2001 From: Isaac Johnson Date: Sat, 6 Jan 2024 10:25:46 -0600 Subject: [PATCH] Fix dependency. missing yq when invoking setup-web. also ensure updated config.json copied in --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e5416091..831ba871 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,15 @@ FROM ghcr.io/cirruslabs/flutter as builder -RUN sudo apt update && sudo apt install curl jq -y +RUN sudo apt update && sudo apt install curl wget jq -y + +WORKDIR /tmp +RUN wget https://github.com/mikefarah/yq/releases/download/v4.40.5/yq_linux_amd64.tar.gz +RUN tar -xzvf ./yq_linux_amd64.tar.gz +RUN mv yq_linux_amd64 /usr/bin/yq + COPY . /app WORKDIR /app RUN ./scripts/prepare-web.sh +COPY config.* /app/ RUN flutter pub get RUN flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps