forked from screwdriver-cd/guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 890 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 ruby:2.5.8-alpine
# Create our application directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install guide
RUN set -x \
&& apk update \
# Missing https for some magical reason; need build tools for jekyll install
&& apk add --no-cache --update ca-certificates build-base \
# You know you're using a lean image when you need to install wget
&& apk add --no-cache --virtual ca-certificates wget \
# Fetch the latest Guide release
&& wget -q -O - https://github.com/screwdriver-cd/guide/releases/latest \
| egrep -o '/screwdriver-cd/guide/releases/download/v[0-9.]*/guide.tgz' \
| wget --base=http://github.com/ -i - -O guide.tgz \
&& tar -zxvf guide.tgz \
# General clean-up
&& rm -rf guide.tgz \
# Need jekyll to serve the pages
&& gem install jekyll
EXPOSE 4000
CMD ["jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000"]