From 9cc7d205e9af919fb57d6df3d48d42b1e74b2526 Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 16 Dec 2024 12:58:38 +0000 Subject: [PATCH] fix: simplify copy --chown --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed9eee3..f354807 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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