Skip to content

Commit cbe961f

Browse files
committed
Add support for running the site in Docker
1 parent e290eb7 commit cbe961f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM ruby:3.0
2+
WORKDIR /code
3+
EXPOSE 4000
4+
COPY . .
5+
RUN bundle install
6+
CMD bundle exec jekyll serve -H 0.0.0.0

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "3"
2+
services:
3+
web:
4+
build: .
5+
ports:
6+
- "4000:4000"
7+
volumes:
8+
- .:/code

0 commit comments

Comments
 (0)