From 44ccc78236d2c12b8e491addb4bf135a3ca62daf Mon Sep 17 00:00:00 2001 From: Andreas Fahrecker Date: Tue, 16 Apr 2024 00:50:14 +0200 Subject: [PATCH] Removed NodeJS and fix Flutter Install error in alpine --- Dockerfile | 4 ---- alpine/Dockerfile | 8 +++++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index d892e5f..19fc525 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,7 +53,3 @@ USER root #Install OpenSSL RUN apt-get update RUN apt-get install -y openssl - -#Install Node.js -RUN apt-get update -RUN apt-get install -y nodejs npm \ No newline at end of file diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 69e1e36..e1e8207 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -11,13 +11,15 @@ RUN apk add --no-cache tea # Install flutter RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing flutter +# Run flutter doctor and upgrade +USER jenkins + RUN flutter config --no-cli-animations RUN flutter doctor -v RUN flutter channel master RUN flutter upgrade +USER root + #Install OpenSSL RUN apk add --no-cache openssl - -#Install Node.js -RUN apk add --no-cache nodejs npm \ No newline at end of file