forked from brikis98/yevgeniy-brikman-homepage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 756 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
30
FROM gliderlabs/alpine:3.2
MAINTAINER Yevgeniy Brikman <jim@ybrikman.com>
# Install all the dependencies for Jekyll
RUN apk-install bash build-base git libffi-dev zlib-dev libxml2-dev libxslt-dev ruby ruby-dev nodejs
# Install Jekyll
RUN gem install bundler jekyll --no-ri --no-rdoc
# Install nokogiri separately because it's special
RUN gem install nokogiri -v 1.6.7.2 -- --use-system-libraries
# Copy the Gemfile and Gemfile.lock into the image and run bundle install in a
# way that will be cached
WORKDIR /tmp
ADD Gemfile Gemfile
ADD Gemfile.lock Gemfile.lock
RUN bundle install
# Copy source
RUN mkdir -p /src
VOLUME ["/src"]
WORKDIR /src
ADD . /src
# Jekyll runs on port 4000 by default
EXPOSE 4000
# Run jekyll serve
CMD ["./jekyll-serve.sh"]