Fix a git issue between root and flutter during the docker build

This commit is contained in:
Rene Cordier
2023-02-15 17:00:43 +07:00
committed by Dat Vu
parent 6a0437b29c
commit c7cc040d84
+1
View File
@@ -11,6 +11,7 @@ ENV PATH "$PATH:$FLUTTER_HOME/bin"
# Prerequisites
RUN apt update && apt install -y curl git unzip xz-utils zip gzip libglu1-mesa \
&& mkdir -p $FLUTTER_HOME \
&& git config --global --add safe.directory /opt/flutter \
&& curl -o flutter.tar.xz $FLUTTER_URL \
&& tar xf flutter.tar.xz -C /opt \
&& rm flutter.tar.xz \