-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (36 loc) · 1.62 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
FROM debian:wheezy
MAINTAINER Adam Sanchez <[email protected]>
RUN apt-get update && apt-get install -y ruby1.8-full wget unzip libmysqlclient-dev build-essential mysql-client
RUN ls -l /usr/lib/ruby/
RUN wget -O /usr/local/src/fedena-v2.3-bundle-linux.zip http://projectfedena.org/download/fedena-bundle-linux && \
unzip /usr/local/src/fedena-v2.3-bundle-linux.zip -d /usr/local/src/
COPY database.yml /usr/local/src/fedena-v2.3-bundle-linux/config/database.yml
RUN cd /usr/local/src && \
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz && \
tar xzvf rubygems-1.3.7.tgz && \
cd /usr/local/src/rubygems-1.3.7 && \
ruby setup.rb && \
update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.8 1
RUN gem install bundler && \
gem install rake -v '0.8.7' && \
gem install activesupport -v '2.3.5' && \
gem install rack -v '1.0.1' && \
gem install actionpack -v '2.3.5' && \
gem install actionmailer -v '2.3.5' && \
gem install activerecord -v '2.3.5' && \
gem install activeresource -v '2.3.5' && \
gem install declarative_authorization -v '0.5.1' && \
gem install fattr -v '2.2.1' && \
gem install i18n -v '0.4.2' && \
gem install mysql -v '2.8.1' && \
gem install rails -v '2.3.5' && \
gem install session -v '3.1.0' && \
gem install rush -v '0.6.8'
COPY init.sh /init.sh
RUN chmod u+x /init.sh
RUN cd /usr/local/src/fedena-v2.3-bundle-linux && \
bundle install --local
RUN mkdir /data && cp -a /usr/local/src/fedena-v2.3-bundle-linux /data/fedena
WORKDIR /usr/local/src/fedena-v2.3-bundle-linux/
EXPOSE 3000
CMD ["/bin/bash", "/init.sh"]