This commit is contained in:
parent
76d32f621e
commit
d25876537c
19
Dockerfile
19
Dockerfile
@ -2,15 +2,21 @@ FROM docker.io/debian:12-slim AS build
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
sdkmanager \
|
||||
xz-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
ADD https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.27.3-stable.tar.xz /flutter.tar.xz
|
||||
RUN tar --no-same-owner -C /opt/ -xJf /flutter.tar.xz
|
||||
# https://docs.flutter.dev/release/archive
|
||||
RUN curl https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.27.3-stable.tar.xz \
|
||||
| tar --no-same-owner -C /opt/ -xJ
|
||||
# https://developer.android.com/tools/releases/build-tools
|
||||
RUN sdkmanager \
|
||||
"build-tools;35.0.0" \
|
||||
"build-tools;33.0.1" \
|
||||
"cmdline-tools;9.0" \
|
||||
"platform-tools;35.0.2" \
|
||||
"platform-tools" \
|
||||
"platforms;android-33" \
|
||||
"platforms;android-34" \
|
||||
"platforms;android-35"
|
||||
|
||||
FROM docker.io/debian:12-slim
|
||||
@ -26,8 +32,7 @@ RUN apt-get update \
|
||||
COPY --from=build /opt/ /opt/
|
||||
ENV PATH="/opt/flutter/bin:$PATH"
|
||||
RUN flutter config --android-sdk /opt/android-sdk/
|
||||
RUN yes | flutter doctor --android-licenses > /dev/null
|
||||
RUN flutter update-packages
|
||||
RUN flutter precache
|
||||
RUN yes | flutter doctor --android-licenses
|
||||
RUN flutter precache --android
|
||||
WORKDIR /app/
|
||||
ENTRYPOINT ["flutter", "--no-version-check"]
|
||||
|
Loading…
Reference in New Issue
Block a user