feat: android-sdk path + openjdk
Some checks failed
/ build (push) Failing after 1m32s

This commit is contained in:
ange 2024-11-09 13:51:20 +08:00
parent d32673a8aa
commit 4f2a697597
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -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