-
Notifications
You must be signed in to change notification settings - Fork 68
/
Dockerfile
29 lines (24 loc) · 968 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
27
28
29
FROM ruby:2.7.6-alpine
# Update RubyGems
RUN gem update --system 3.3.22
# 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://api.github.com/repos/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 public_suffix:4.0.7 jekyll:4.2.2
EXPOSE 4000
CMD ["jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000"]