Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Aug 27, 2024
1 parent 295e6be commit 51c6d05
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
74 changes: 74 additions & 0 deletions Dockerfile
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

3 changes: 3 additions & 0 deletions entrypoint.sh
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

0 comments on commit 51c6d05

Please sign in to comment.