From 8a17d4c19f1383ef296f58b64dc9e4f046cc0cfe Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 9 Nov 2024 13:58:14 +0800 Subject: [PATCH] feat: android licenses --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c2df77..5d104fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN apt-get update \ && apt-get install -y --no-install-recommends \ curl \ git \ + openjdk-17-jdk-headless \ sdkmanager \ unzip \ && rm -rf /var/lib/apt/lists/* @@ -21,11 +22,8 @@ RUN sdkmanager \ "platform-tools;35.0.2" \ "platforms;android-35" COPY --from=build --chown=app:app /opt/ /opt/ -RUN apt-get update \ - && apt-get install -y --no-install-recommends \ - openjdk-17-jdk-headless \ - && rm -rf /var/lib/apt/lists/* USER app ENV PATH="/opt/flutter/bin:$PATH" -RUN flutter config --android-sdk /opt/android-sdk/ +RUN flutter config --android-sdk /opt/android-sdk/ \ + && flutter doctor --android-licenses RUN flutter doctor