We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7247d94 commit 8e65b18Copy full SHA for 8e65b18
Dockerfile
@@ -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
@@ -0,0 +1,2 @@
+docker build -t ssl-dev .
+docker run --rm -p 7000:7000 -v $(pwd):/app ssl-dev
0 commit comments