forked from goodrain/rainbond-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 662 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (21 loc) · 662 Bytes
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
27
28
29
30
31
FROM goodrainapps/jekyll:3.6.2
MAINTAINER zhouyq@goodrain.com
# set timezone and install nginx
ENV TZ=Asia/Shanghai
RUN apk add --no-cache tzdata nginx \
&& mkdir /run/nginx \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
# add cron
# RUN crontab -l | { cat; echo "* * * * * cd /srv/jekyll;./build.sh "; } | crontab -
WORKDIR /srv/jekyll
COPY Gemfile /srv/jekyll
COPY Gemfile.lock /srv/jekyll
# 安装组件
RUN bundle config mirror.https://rubygems.org https://gems.ruby-china.org/ \
&& bundle
COPY . /srv/jekyll
COPY etc /etc
EXPOSE 80
EXPOSE 4000
ENTRYPOINT ["/srv/jekyll/run.sh"]