From 4f2a697597998226c3780aa493e16b26cc3284b2 Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 9 Nov 2024 13:51:20 +0800 Subject: [PATCH] feat: android-sdk path + openjdk --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index cf7a335..cc6761f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,9 @@ RUN sdkmanager \ COPY --from=build --chown=app:app /opt/ /opt/ USER app ENV PATH="/opt/flutter/bin:$PATH" +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + openjdk-17-jdk-headless \ + && rm -rf /var/lib/apt/lists/* +RUN flutter config --android-sdk /opt/android-sdk/ RUN flutter doctor