forked from jedi4ever/devopsdays-webby
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
54 lines (48 loc) · 1.04 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
RUN apt-get update
RUN apt-get install \
libonig-dev \
gawk \
g++ \
gcc \
make \
libc6-dev \
libreadline6-dev \
zlib1g-dev \
libssl-dev \
libyaml-dev \
libsqlite3-dev \
sqlite3 \
autoconf \
libgdbm-dev \
libncurses5-dev \
automake \
libtool \
bison \
pkg-config \
libffi-dev \
unzip \
wget \
libxslt-dev \
libxml2-dev \
apache2 \
-y
RUN apt-get install \
gcc-4.4 \
g++-4.4 \
-y
RUN wget http://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p374.tar.gz
RUN tar -xzvf ruby-1.8.7-p374.tar.gz
RUN cd ruby-1.8.7-p374 && ./configure
RUN cd ruby-1.8.7-p374 && make CC=gcc-4.4
RUN cd ruby-1.8.7-p374 && make install
RUN wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
RUN tar -xzvf rubygems-1.3.7.tgz
RUN cd rubygems-1.3.7 && ruby setup.rb
COPY . /opt/devopsdays
WORKDIR /opt/devopsdays
RUN gem install bundler
RUN bundle install
RUN cd site && webby build
RUN rm -rf var/www/html
RUN cp -r site/output/* /var/www/html/