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" \
"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"]