-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 889 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
FROM redguava/centos:latest
# Install readline
RUN yum install -y readline-devel
# Install ruby dependencies
RUN yum install --enablerepo=centosplus -y gcc gcc-c++ libffi-devel make openssl-devel
# Install gem dependencies
RUN yum install -y libxml2 libxml2-devel libxslt libxslt-devel
# Install postgres-client
RUN yum localinstall -y http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
RUN yum install -y postgresql93-devel
ENV PATH /usr/pgsql-9.3/bin:$PATH
# Install ruby
RUN git clone https://github.com/sstephenson/ruby-build.git /usr/local/src/ruby-build && \
cd /usr/local/src/ruby-build && \
./install.sh && \
CONFIGURE_OPTS="--disable-install-doc" ruby-build 2.1.6 /usr/local && \
rm -rf /usr/local/src/ruby-build
# Configure gem installation
RUN echo 'gem: --no-document' >> ~/.gemrc
# Install bundler
RUN gem install bundler