Skip to content

Commit c9389f6

Browse files
authored
Merge pull request #2946 from znz/imporove-compose.yaml
Improve Dockerfile and compose.yaml
2 parents 19e2ffb + 72c4038 commit c9389f6

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

compose.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22
#
33
# docker compose build
44
# docker compose run --rm rurema rake -T
5-
# docker compose run --rm rurema rake generate:2.7.0 statichtml:2.7.0
6-
# open _site/2.7.0/index.html instead of /tmp/html/2.7.0/index.html
5+
# docker compose run --rm rurema rake generate:3.4 statichtml:3.4
6+
# open _site/3.4/index.html instead of /tmp/html/3.4/index.html
77
services:
88
rurema:
9-
build: .
9+
build:
10+
context: .
1011
volumes:
1112
- ..:/workspaces:cached
1213
- "./_site:/tmp/html/"
14+
- "bundle_cache:/usr/local/bundle"
1315
web:
1416
image: nginx
1517
ports:
16-
- "8080:80"
18+
- "8080:80"
1719
volumes:
18-
- "./_site:/usr/share/nginx/html:ro"
20+
- "./_site:/usr/share/nginx/html:ro"
21+
22+
volumes:
23+
bundle_cache:

0 commit comments

Comments
 (0)