Skip to content

Commit

Permalink
ci: restore root user
Browse files Browse the repository at this point in the history
  • Loading branch information
dtscalac committed Apr 12, 2024
1 parent dd6ce45 commit 39ce401
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions catalyst_voices/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,10 @@ deps:
RUN chmod +x scripts/install-edge-linux64.sh && ./scripts/install-edge-linux64.sh
RUN chmod +x scripts/install-firefox-linux64.sh && ./scripts/install-firefox-linux64.sh

# create a new user called "ci-flutter",
# flutter strongly recommends not running the command as root
RUN useradd -ms /bin/bash ci-flutter
USER ci-flutter

WORKDIR /frontend

RUN git clone https://github.com/flutter/flutter.git /home/ci-flutter/sdk/
ENV PATH="/home/ci-flutter/sdk/bin:/home/ci-flutter/sdk/bin/cache/dart-sdk/bin:$HOME/.pub-cache/bin:${PATH}"
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:$HOME/.pub-cache/bin:${PATH}"
RUN flutter channel stable
RUN flutter upgrade
RUN flutter --version
Expand Down

0 comments on commit 39ce401

Please sign in to comment.