-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (21 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
33 lines (21 loc) · 799 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
32
33
FROM ruby:2.3.0-alpine
MAINTAINER sheaphillips <shea.phillips@gmail.com>
RUN apk update \
&& apk add ruby-dev libpq libgcc ca-certificates make gcc libc-dev libffi-dev \
nodejs 'python<3' zlib-dev libxml2 libxml2-dev libxslt libxslt-dev \
&& gem install nokogiri -N \
&& gem install jekyll -N \
&& gem install github-pages -N \
&& gem install bundler -N \
&& apk add ruby-json
ADD Gem* /guide/
WORKDIR /guide
RUN bundler && apk del --purge ruby-dev \
libgcc gcc make libc-dev libffi-dev zlib-dev libxml2-dev libxslt-dev
ADD . /guide
RUN adduser -S jekyll
RUN chown -R jekyll:0 /guide && chmod -R 770 /guide
USER jekyll
ENV JEKYLL_ENV=production JEKYLL_CONFIG="--config _config.yml"
EXPOSE 4000
CMD ./go serve --host 0.0.0.0 ${JEKYLL_CONFIG}