Skip to content

Commit 18da538

Browse files
committed
Added Dockerfile to run jekyll locally
1 parent 098e8a3 commit 18da538

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ruby:bookworm
2+
3+
WORKDIR /opt/feur
4+
COPY . .
5+
EXPOSE 4000
6+
7+
RUN bundle install
8+
9+
WORKDIR /mnt
10+
CMD ["bundle", "exec", "jekyll", "s", "-H", "0.0.0.0"]

run_docker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
docker run -it -dp "4000:4000" --mount type=bind,source="$(pwd)",target=/mnt jekll

0 commit comments

Comments
 (0)