Skip to content

Commit 4e72cb0

Browse files
committed
build-in-docker.shで毎回setup.sh実行で時間がかかるのでdocker composeを追加
1 parent 83a35b3 commit 4e72cb0

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM vvakame/review:5.8
2+
3+
WORKDIR /book
4+
5+
COPY . /book
6+
7+
RUN ./setup.sh

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,17 @@ Docker環境でも以下のように指定できます。
207207
$ REVIEW_CONFIG_FILE=config-ebook.yml ./build-in-docker.sh
208208
```
209209

210+
Docker Composeを利用すると以下のように指定できます。
211+
212+
```
213+
$ docker compose up
214+
```
215+
または
216+
217+
```
218+
$ docker compose run -e REVIEW_CONFIG_FILE=config.yml --rm review npm run pdf
219+
```
220+
210221
紙版と電子版では以下のような違いがあります。
211222

212223
* 紙版:印刷用に、トンボ、デジタルトンボを設置。いくつかの同人誌印刷所で要求事項となっているノドへの隠しノンブル、大扉からのアラビア数字通し。ハイパーリンクは無効化。表紙(cover)は無視。

compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
review:
3+
build:
4+
context: .
5+
volumes:
6+
- .:/book
7+
working_dir: /book
8+
environment:
9+
- REVIEW_CONFIG_FILE=config.yml
10+
command: npm run pdf

0 commit comments

Comments
 (0)