Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install google-chrome for mermaid-go not to err #12

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ RUN curl -LO https://github.com/kovetskiy/mark/releases/download/${MARK}/mark_${
tar -xvzf mark_${MARK}_Linux_x86_64.tar.gz && \
chmod +x mark && \
sudo mv mark /usr/local/bin/mark

# mermaid-go mermaid provider would err "google-chrome: executable file not found" if google chrome executable is not present
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && apt-get install -y wget
RUN apt-get update && apt-get install -y gnupg2
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
RUN apt-get update && apt-get -y install google-chrome-stable

COPY --from=builder /app /app
WORKDIR /app
Expand Down