fix: android licenses for real this time
All checks were successful
/ build (push) Successful in 4m13s

This commit is contained in:
ange 2024-11-14 17:40:16 +08:00
parent 9827ab7de3
commit 0afd524627
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -10,8 +10,7 @@ RUN sdkmanager \
"build-tools;35.0.0" \ "build-tools;35.0.0" \
"cmdline-tools;9.0" \ "cmdline-tools;9.0" \
"platform-tools;35.0.2" \ "platform-tools;35.0.2" \
"platforms;android-35" \ "platforms;android-35"
&& yes | sdkmanager --licenses
FROM docker.io/debian:12-slim FROM docker.io/debian:12-slim
RUN useradd -m app RUN useradd -m app
@ -25,6 +24,6 @@ RUN apt-get update \
COPY --from=build --chown=app:app /opt/ /opt/ COPY --from=build --chown=app:app /opt/ /opt/
USER app USER app
ENV PATH="/opt/flutter/bin:$PATH" ENV PATH="/opt/flutter/bin:$PATH"
RUN flutter config --android-sdk /opt/android-sdk/ RUN flutter config --android-sdk /opt/android-sdk/ \
RUN flutter doctor && yes | flutter doctor --android-licenses > /dev/null
ENTRYPOINT ["flutter"] ENTRYPOINT ["flutter"]