forked from cboettig/labnotebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (40 loc) · 1.18 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
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8 && dpkg-reconfigure locales
RUN apt-get update && apt-get -y install \
bundler \
git \
libxml2-dev \
libxslt1-dev \
libcurl4-openssl-dev \
make \
pandoc \
pandoc-citeproc \
ruby1.9.1 \
ruby1.9.1-dev \
software-properties-common \
&& gem install nokogiri -v '1.6.3.1'
ADD . /labnotebook
WORKDIR /labnotebook
## Configure bundler and install gems listed in the Gemfile
RUN bundle config --global LANG en_US.UTF-8 \
&& bundle config --global LC_ALL en_US.UTF-8 \
&& bundle config build.nokogiri --use-system-libraries \
&& bundle install && bundle update
## Build environment for compiling Bootstrap >= 3.0.0 (Node.js / SASS environment)
RUN add-apt-repository ppa:chris-lea/node.js \
&& apt-get update && apt-get -y install \
python \
python-software-properties \
g++ \
make \
nodejs
RUN npm install -g grunt-cli
WORKDIR /labnotebook/assets/_bootstrap-3.1.1
RUN npm install
RUN make
WORKDIR /labnotebook
CMD bundle exec jekyll build --trace
#CMD bundle exec rake site:deploy