32 lines
1.0 KiB
Docker
32 lines
1.0 KiB
Docker
FROM docker.io/debian:12-slim AS build
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
sdkmanager \
|
|
xz-utils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
ADD https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.27.0-stable.tar.xz /flutter.tar.xz
|
|
RUN tar --no-same-owner -C /opt/ -xJf /flutter.tar.xz
|
|
RUN sdkmanager \
|
|
"build-tools;35.0.0" \
|
|
"cmdline-tools;9.0" \
|
|
"platform-tools;35.0.2" \
|
|
"platforms;android-35"
|
|
|
|
FROM docker.io/debian:12-slim
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN touch /.dockerenv
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
curl \
|
|
git \
|
|
openjdk-17-jdk-headless \
|
|
unzip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY --from=build /opt/ /opt/
|
|
ENV PATH="/opt/flutter/bin:$PATH"
|
|
RUN flutter config --android-sdk /opt/android-sdk/ \
|
|
&& yes | flutter doctor --android-licenses > /dev/null
|
|
WORKDIR /app/
|
|
ENTRYPOINT ["flutter"]
|