-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
42 lines (39 loc) · 1.54 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM envygeeks/alpine
MAINTAINER Jekyll Core <[email protected]>
COPY copy/ /
ENV \
LANGUAGE=en_US \
LANG=en_US.UTF-8 \
JEKYLL_ENV=development \
LC_ALL=en_US
<% if @meta.env? %>
ENV <%=
@meta.env
%>
<% end %>
RUN \
apk --update add zlib-dev build-base libxml2-dev libxslt-dev readline-dev \
libffi-dev ruby-dev yaml-dev zlib-dev libxslt-dev readline-dev libxml2-dev \
libffi-dev ruby-dev yaml-dev zlib libxml2 build-base ruby-io-console readline \
libxslt ruby yaml libffi nodejs ruby-irb ruby-json ruby-rake ruby-rdoc \
git <% if @meta.packages? %><%= @meta.packages %><% end %> && \
yes | gem update --no-document -- --use-system-libraries && \
yes | gem update --system --no-document -- --use-system-libraries && \
yes | docker-helper ruby-install-gem "jekyll@<%= @meta.release %>" && \
docker-helper add-user-1000 jekyll && \
cd ~ && \
mkdir -p /usr/share/ruby && \
echo "<%= @meta.gems %>" > /usr/share/ruby/default-gems && \
docker-helper install-default-gems && \
docker-helper install_default_gems && \
gem clean && gem install bundler \
--no-document && \
docker-helper create-dir jekyll:jekyll /srv/jekyll && \
echo 'jekyll ALL=NOPASSWD:ALL' >> /etc/sudoers && \
apk del zlib-dev build-base libxml2-dev libxslt-dev readline-dev libffi-dev \
ruby-dev yaml-dev zlib-dev libxslt-dev readline-dev libxml2-dev \
libffi-dev ruby-dev yaml-dev zlib libxml2 build-base && \
docker-helper cleanup
WORKDIR /srv/jekyll
VOLUME /srv/jekyll
EXPOSE 35729 4000