2024-11-09 04:36:41 +00:00
|
|
|
FROM docker.io/debian:12-slim as build
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
xz-utils \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ADD https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.24.4-stable.tar.xz /flutter.tar.xz
|
2024-11-09 05:12:51 +00:00
|
|
|
RUN tar -C /opt/ --exclude=cache -xJf /flutter.tar.xz
|
2024-11-09 04:36:41 +00:00
|
|
|
|
|
|
|
FROM docker.io/debian:12-slim
|
|
|
|
RUN useradd -m app
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
sdkmanager \
|
|
|
|
unzip \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN sdkmanager \
|
|
|
|
"build-tools;35.0.0" \
|
|
|
|
"cmdline-tools;9.0" \
|
|
|
|
"platform-tools;35.0.2" \
|
|
|
|
"platforms;android-35"
|
2024-11-09 05:12:51 +00:00
|
|
|
COPY --from=build --chown=app:app /opt/ /opt/
|
2024-11-09 04:36:41 +00:00
|
|
|
USER app
|
|
|
|
ENV PATH="/opt/flutter/bin:$PATH"
|
2024-11-09 05:51:20 +00:00
|
|
|
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/
|
2024-11-09 05:10:47 +00:00
|
|
|
RUN flutter doctor
|