generated from huidetang/XiandaiFenshuTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
295e6be
commit 51c6d05
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
FROM python:slim as python | ||
RUN pip3 install anshitsu | ||
RUN python3 svg.py | ||
RUN python3 grayscaling.py | ||
|
||
FROM node:slim as node | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
FROM ruby:slim as base | ||
COPY --from=node /usr/local/bin/node /usr/local/bin | ||
COPY --from=node /pnpm /pnpm | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
RUN apt update && \ | ||
apt install -y autoconf \ | ||
bison \ | ||
build-essential \ | ||
libssl-dev \ | ||
libyaml-dev \ | ||
libreadline6-dev \ | ||
zlib1g-dev \ | ||
libncurses5-dev \ | ||
libffi-dev \ | ||
libgdbm6 \ | ||
libgdbm-dev \ | ||
libdb-dev \ | ||
locales \ | ||
git-core \ | ||
zip \ | ||
unzip \ | ||
fontconfig \ | ||
apt-utils \ | ||
bash \ | ||
curl \ | ||
sudo \ | ||
librsvg2-bin \ | ||
libssl-dev \ | ||
libreadline-dev \ | ||
sudo \ | ||
cron \ | ||
libcairo2-dev \ | ||
libffi-dev \ | ||
zlib1g-dev && \ | ||
libatk-bridge2.0-0 \ | ||
libgtk-3-0 \ | ||
libasound2 \ | ||
pandoc \ | ||
mecab \ | ||
mecab-ipadic-utf8 \ | ||
libmecab-dev \ | ||
libgbm-dev \ | ||
file \ | ||
xz-utils \ | ||
poppler-data \ | ||
graphviz \ | ||
poppler-utils && \ | ||
apt clean | ||
|
||
RUN git clone https://github.com/neologd/mecab-ipadic-neologd.git && \ | ||
cd mecab-ipadic-neologd && \ | ||
sudo bin/install-mecab-ipadic-neologd -y && \ | ||
sudo echo dicdir = /usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd > /etc/mecabrc | ||
|
||
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc && \ | ||
gem update && \ | ||
bundle install | ||
|
||
RUN pnpm install | ||
RUN pnpm run style | ||
RUN REVIEW_CONFIG_FILE=config-vivliostyle.yml REVIEW_VSCLI_USESANDBOX=true bundle exec rake vivliostyle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh -l | ||
|
||
REVIEW_CONFIG_FILE=config-vivliostyle.yml REVIEW_VSCLI_USESANDBOX=true bundle exec rake vivliostyle |