Skip to content

Commit

Permalink
fix(flutter): flutter apt-get install & update as single command (#356)
Browse files Browse the repository at this point in the history
* fix: flutter apt-get install & update as single command

* fix: spelling

* fix: spelling

---------

Co-authored-by: Stefano Cunego <[email protected]>
Co-authored-by: Oleksandr Prokhorenko <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent a258a24 commit dc83a07
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,23 @@ flutter-base:

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update --fix-missing
RUN apt-get install -y apt-utils git curl gzip unzip bzip2 bash jq gpg lcov tar wget xz-utils
# Update and install as same command so if either fails, the whole step fails and is not cached.
RUN apt-get update --fix-missing && \
apt-get install -y \
apt-utils \
git \
curl \
gzip \
unzip \
bzip2 \
bash \
jq \
gpg \
lcov \
tar \
wget \
xz-utils \
&& rm -rf /var/lib/apt/lists/*

DO +INSTALL_FLUTTER

Expand Down

0 comments on commit dc83a07

Please sign in to comment.