Skip to content

Commit d7fb811

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ RUN flutter pub global activate dartdoc \
5656
RUN echo "Flutter and Dart installation completed successfully."
5757

5858
USER openvscode-server
59+
WORKDIR /home/openvscode-server
5960

6061
RUN echo "Adding FVM"
6162
RUN bash -c "$(curl -fsSL https://fvm.app/install.sh)" --unattended
63+
ENV PATH="/home/openvscode-server/.fvm/bin:${PATH}"
6264

6365
RUN echo "Adding Oh My Bash"
6466
RUN bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" --unattended

0 commit comments

Comments
 (0)