feat: android licenses
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
ange 2024-11-09 13:58:14 +08:00
parent dae367db72
commit 8a17d4c19f
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -12,6 +12,7 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
curl \ curl \
git \ git \
openjdk-17-jdk-headless \
sdkmanager \ sdkmanager \
unzip \ unzip \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
@ -21,11 +22,8 @@ RUN sdkmanager \
"platform-tools;35.0.2" \ "platform-tools;35.0.2" \
"platforms;android-35" "platforms;android-35"
COPY --from=build --chown=app:app /opt/ /opt/ COPY --from=build --chown=app:app /opt/ /opt/
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
openjdk-17-jdk-headless \
&& rm -rf /var/lib/apt/lists/*
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/ \
&& flutter doctor --android-licenses
RUN flutter doctor RUN flutter doctor