Skip to content

Commit 257f44b

Browse files
authored
fix: install FVM as non-root user in Dockerfile
1 parent e4a27ea commit 257f44b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@ RUN flutter pub global activate dartdoc \
5555
&& flutter doctor && flutter precache --universal
5656
RUN echo "Flutter and Dart installation completed successfully."
5757

58-
RUN echo "Adding FVM"
59-
# RUN echo "export FVM_ALLOW_ROOT=true"
60-
RUN bash -c "$(sudo curl -fsSL https://fvm.app/install.sh)" --unattended
61-
6258
USER openvscode-server
6359

60+
RUN echo "Adding FVM"
61+
RUN bash -c "$(curl -fsSL https://fvm.app/install.sh)" --unattended
62+
6463
RUN echo "Adding Oh My Bash"
6564
RUN bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" --unattended
6665

0 commit comments

Comments
 (0)