From 0afd52462769338a87c4483381ccdfa3f2fc6718 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 14 Nov 2024 17:40:16 +0800 Subject: [PATCH] fix: android licenses for real this time --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 307d749..e356186 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,7 @@ RUN sdkmanager \ "build-tools;35.0.0" \ "cmdline-tools;9.0" \ "platform-tools;35.0.2" \ - "platforms;android-35" \ - && yes | sdkmanager --licenses + "platforms;android-35" FROM docker.io/debian:12-slim RUN useradd -m app @@ -25,6 +24,6 @@ RUN apt-get update \ COPY --from=build --chown=app:app /opt/ /opt/ USER app ENV PATH="/opt/flutter/bin:$PATH" -RUN flutter config --android-sdk /opt/android-sdk/ -RUN flutter doctor +RUN flutter config --android-sdk /opt/android-sdk/ \ + && yes | flutter doctor --android-licenses > /dev/null ENTRYPOINT ["flutter"]