mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: docker build
❌ The protoc-gen-dart was not installed correctly. ✅ You can fix that by adding "dart pub global activate protoc_plugin" to your shell's config file.(.bashrc, .bash, etc.)
This commit is contained in:
parent
6593855f8f
commit
bde597a10b
@ -6,7 +6,7 @@ RUN pacman -Syu --needed --noconfirm git xdg-user-dirs
|
|||||||
|
|
||||||
# makepkg user and workdir
|
# makepkg user and workdir
|
||||||
ARG user=makepkg
|
ARG user=makepkg
|
||||||
ENV PATH="/home/makepkg/.local/flutter/bin:/home/makepkg/.local/flutter/bin/cache/dart-sdk/bin:${PATH}"
|
ENV PATH="/home/makepkg/.pub-cache/bin:/home/makepkg/.local/flutter/bin:/home/makepkg/.local/flutter/bin/cache/dart-sdk/bin:${PATH}"
|
||||||
RUN useradd --system --create-home $user \
|
RUN useradd --system --create-home $user \
|
||||||
&& echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user
|
&& echo "$user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$user
|
||||||
USER $user
|
USER $user
|
||||||
@ -27,6 +27,7 @@ RUN git clone https://github.com/flutter/flutter.git $HOME/.local/flutter
|
|||||||
RUN flutter channel stable
|
RUN flutter channel stable
|
||||||
RUN flutter config --enable-linux-desktop
|
RUN flutter config --enable-linux-desktop
|
||||||
RUN flutter doctor
|
RUN flutter doctor
|
||||||
|
RUN dart pub global activate protoc_plugin
|
||||||
|
|
||||||
RUN git clone https://github.com/AppFlowy-IO/appflowy.git && \
|
RUN git clone https://github.com/AppFlowy-IO/appflowy.git && \
|
||||||
cd appflowy/frontend && \
|
cd appflowy/frontend && \
|
||||||
|
Loading…
Reference in New Issue
Block a user