-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (30 loc) · 890 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
31
32
33
34
35
36
FROM phusion/baseimage:0.11
RUN apt-get -y update && apt-get install -y \
build-essential \
imagemagick \
libxml2-dev \
libpq-dev \
nodejs \
zlib1g-dev \
libssl1.0-dev \
libxslt-dev \
libreadline6-dev \
libyaml-dev \
wget
RUN cd /tmp; wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p551.tar.gz; tar -xvzf ruby-1.9.3-p551.tar.gz; cd ruby-1.9.3-p551/; ./configure --prefix=/usr/local; make; make install
RUN gem install bundler -v 1.11.2
RUN mkdir /cubemania
WORKDIR /cubemania
COPY Gemfile* /cubemania/
RUN bundle install
COPY app /cubemania/app
COPY config /cubemania/config
COPY db /cubemania/db
COPY doc /cubemania/doc
COPY lib /cubemania/lib
COPY public /cubemania/public
COPY script /cubemania/script
COPY spec /cubemania/spec
COPY vendor /cubemania/vendor
COPY Rakefile config.ru Guardfile Procfile /cubemania/
RUN bundle exec rake assets:precompile