-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (36 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
45 lines (36 loc) · 1.23 KB
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
FROM ubuntu:xenial
# Setting output to non-interactive
ENV DEBIAN_FRONTEND noninteractive
# Make sure we use 'universe'
RUN sed -i.bak 's/main$/main universe/' /etc/apt/sources.list
# Install libs
RUN apt-get update -y && \
apt-get install -y \
apt-utils \
libreadline-dev \
build-essential \
libpq-dev \
curl \
git \
libxml2-dev \
libxslt-dev \
libyaml-dev \
libffi-dev \
python-pip
# Upgrading pip and installing supervisord
RUN pip install --upgrade pip && pip install supervisor
# Add Node repo
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - > /dev/null
RUN apt-get install -y nodejs
RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv && \
git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build
# Setup rbenv
ENV PATH /root/.rbenv/bin:$PATH
ENV PATH /root/.rbenv/shims:$PATH
RUN eval "$(rbenv init -)" && \
rbenv rehash && \
echo "---\ngem: --no-rdoc --no-ri" > /root/.gemrc
RUN rbenv install 2.4.3
RUN rbenv global 2.4.3
RUN gem install bundler
RUN rbenv rehash