Skip to content

Commit

Permalink
fix: flutter apt-get install & update as single command
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-molinski committed Dec 2, 2024
1 parent 474e2f8 commit cfa27d3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,24 @@ 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
# Runing update & 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 cfa27d3

Please sign in to comment.