Skip to content

Commit def43bd

Browse files
committed
fix: update Dockerfile to allow root for FVM
1 parent 7fbb608 commit def43bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ RUN apt-get update && apt-get install -y curl git unzip && apt-get clean
5151

5252
RUN chsh -s /bin/bash
5353

54+
ENV FVM_ALLOW_ROOT=true
55+
5456
# Install FVM
5557
RUN curl -fsSL https://fvm.app/install.sh | bash
5658

@@ -91,7 +93,7 @@ RUN sed -i "s/RELEASE_DATE=.*/RELEASE_DATE=$(cat .release_date)/g" .env
9193
RUN fvm flutter pub get
9294

9395
# Build the app without tree shaking icons because it currently crashes the build (idk if its a package issue or a flutter issue)
94-
RUN fvm flutter build web --release -o /usr/share/nginx/html --dart-define-from-file=.env -O 1 --no-tree-shake-icons --base-href $(echo $BASE_HREF | tr -d '"')
96+
RUN fvm flutter build web --release -o /usr/share/nginx/html --dart-define-from-file=.env --no-tree-shake-icons --base-href $(echo $BASE_HREF | tr -d '"')
9597

9698
RUN sed -i "s/secondsSinceEpoch/$(date +%s)/g" /usr/share/nginx/html/index.html
9799

0 commit comments

Comments
 (0)