From dae367db722f275a16b40132c603f1335bc829bd Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 9 Nov 2024 13:53:35 +0800 Subject: [PATCH] fix: apt permissions --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc6761f..4c2df77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,11 +21,11 @@ RUN sdkmanager \ "platform-tools;35.0.2" \ "platforms;android-35" 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/* +USER app +ENV PATH="/opt/flutter/bin:$PATH" RUN flutter config --android-sdk /opt/android-sdk/ RUN flutter doctor