Skip to content

Commit

Permalink
Fix extracting flutter file to tmp folder instead of current folder (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Feb 6, 2023
1 parent 79df78c commit 7572fad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
COCOAPODS_ALLOW_ROOT=1 \
CARGO_HOME=/root/.cargo \
RUSTUP_HOME=/root/.rustup \
PATH=${PATH}:/root/.cargo/bin:/tmp/flutter/bin
PATH=${PATH}:/root/.cargo/bin:/opt/flutter/bin

RUN apt-get -qq update \
&& apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -46,9 +46,9 @@ RUN apt-get -qq update \
&& rm /tmp/sym-collector.zip \
&& chmod +x /usr/local/bin/SymbolCollector.Console

RUN curl -fsSL https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.7.1-stable.tar.xz -o /tmp/flutter_linux_3.7.1-stable.tar.xz \
&& tar xf /tmp/flutter_linux_3.7.1-stable.tar.xz \
&& rm /tmp/flutter_linux_3.7.1-stable.tar.xz
RUN curl -fsSL https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.7.1-stable.tar.xz -o /opt/flutter_linux_3.7.1-stable.tar.xz \
&& tar xf /opt/flutter_linux_3.7.1-stable.tar.xz -C /opt \
&& rm /opt/flutter_linux_3.7.1-stable.tar.xz

# craft does `git` things against mounted directories as root
RUN git config --global --add safe.directory '*'
Expand Down

0 comments on commit 7572fad

Please sign in to comment.