-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from newtheatre/feature/better-docker
mo' better docker
- Loading branch information
Showing
4 changed files
with
40 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,7 @@ | ||
FROM ruby:2.7.0 | ||
|
||
WORKDIR /srv/jekyll | ||
|
||
COPY . . | ||
|
||
RUN bundle config path vendor/bundle |
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,5 @@ | ||
#!/usr/bin/env sh | ||
|
||
rm -rf ./vendor | ||
docker-compose up -d --build | ||
docker-compose exec app bundle install |
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,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
docker-compose exec app \ | ||
bundle exec jekyll server \ | ||
--host 0.0.0.0 \ | ||
--port 4000 |
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,22 @@ | ||
version: '3' | ||
|
||
services: | ||
app: | ||
platform: linux/x86_64 | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- "./:/srv/jekyll" | ||
ports: | ||
- "4000:4000" | ||
networks: | ||
- website-network | ||
entrypoint: tail -f /dev/null | ||
environment: | ||
EXECJS_RUNTIME: Disabled | ||
|
||
networks: | ||
website-network: | ||
driver: bridge | ||
|