Skip to content

Commit 8e65b18

Browse files
committed
completed PR
1 parent 7247d94 commit 8e65b18

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# use official ruby image
2+
FROM ruby:3.2
3+
4+
# install nodejs and yarn for JS runtime
5+
RUN apt-get update && apt-get install -y nodejs npm git && \
6+
npm install -g yarn && \
7+
gem install bundler
8+
9+
# set working directory
10+
WORKDIR /app
11+
12+
# install ruby dependencies
13+
COPY Gemfile* ./
14+
RUN bundle install
15+
16+
# expose jekyll port
17+
EXPOSE 7000
18+
19+
# default command to build and serve jekyll in watch mode
20+
CMD ["bash", "-c", "jekyll serve --watch --incremental --port 7000 --host 0.0.0.0 --baseurl '/'"]

run-docker.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docker build -t ssl-dev .
2+
docker run --rm -p 7000:7000 -v $(pwd):/app ssl-dev

0 commit comments

Comments
 (0)