forked from USRSE/usrse.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (21 loc) · 775 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM jekyll/jekyll:3.8
## Currently jekyll/jekyll:4 fails with the error below so tag 3.8 is used instead.
# Dockerfile:10
# --------------------
# 8 | ## Install required gems
# 9 | COPY ./Gemfile ./Gemfile
# 10 | >>> RUN bundle install
# 11 |
# 12 | ## Copy source files
# --------------------
# ERROR: failed to solve: process "/bin/sh -c bundle install"
# did not complete successfully: exit code: 5
ENV JEKYLL_UID=1000
ENV JEKYLL_GID=1000
USER ${JEKYLL_UID}
## Install required gems
COPY ./Gemfile ./Gemfile
RUN bundle install
## Copy source files
COPY --chown=${JEKYLL_UID}:${JEKYLL_GID} ./ ./
CMD ["bundle", "exec", "jekyll", "serve", "--host=0.0.0.0", "--watch", "--drafts"]