This commit is contained in:
parent
ce7e192461
commit
9cc7d205e9
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/debian:12-slim as build
|
FROM docker.io/debian:12-slim AS build
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
@ -6,7 +6,7 @@ RUN apt-get update \
|
|||||||
xz-utils \
|
xz-utils \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ADD https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.5-stable.tar.xz /flutter.tar.xz
|
ADD https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.5-stable.tar.xz /flutter.tar.xz
|
||||||
RUN tar -C /opt/ -xJf /flutter.tar.xz
|
RUN tar --no-same-owner -C /opt/ -xJf /flutter.tar.xz
|
||||||
RUN sdkmanager \
|
RUN sdkmanager \
|
||||||
"build-tools;35.0.0" \
|
"build-tools;35.0.0" \
|
||||||
"cmdline-tools;9.0" \
|
"cmdline-tools;9.0" \
|
||||||
@ -23,7 +23,7 @@ RUN apt-get update \
|
|||||||
openjdk-17-jdk-headless \
|
openjdk-17-jdk-headless \
|
||||||
unzip \
|
unzip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build --chown=0:0 /opt/ /opt/
|
COPY --from=build /opt/ /opt/
|
||||||
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/ \
|
||||||
&& yes | flutter doctor --android-licenses > /dev/null
|
&& yes | flutter doctor --android-licenses > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user