fix: simplify copy --chown
All checks were successful
/ build (push) Successful in 5m28s

This commit is contained in:
ange 2024-12-16 12:58:38 +00:00
parent ce7e192461
commit 9cc7d205e9
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -1,4 +1,4 @@
FROM docker.io/debian:12-slim as build
FROM docker.io/debian:12-slim AS build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
@ -6,7 +6,7 @@ RUN apt-get update \
xz-utils \
&& 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
RUN tar -C /opt/ -xJf /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" \
@ -23,7 +23,7 @@ RUN apt-get update \
openjdk-17-jdk-headless \
unzip \
&& 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"
RUN flutter config --android-sdk /opt/android-sdk/ \
&& yes | flutter doctor --android-licenses > /dev/null