-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (42 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
50 lines (42 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
46
47
48
49
50
FROM ubuntu:14.10
MAINTAINER Kieran Johnson <kieran@invisiblelines.com>
ENV RUBY_VERSION 2.2.0
ENV DEBIAN_FRONTEND noninteractive
RUN locale-gen en_GB.UTF-8
ENV LANG en_GB.UTF-8
ENV LC_ALL en_GB.UTF-8
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# System upgrade
RUN apt-get -qq update && \
apt-get -qqy upgrade; \
apt-get -qqy install \
build-essential \
software-properties-common \
python-software-properties \
openssl \
ca-certificates \
git-core \
unzip \
imagemagick \
curl \
bison \
zlib1g-dev \
libgdbm-dev \
libreadline6-dev \
libncurses5-dev \
libyaml-dev \
libssl-dev \
libxslt-dev \
libxml2-dev \
libffi-dev \
openjdk-7-jre-headless; \
apt-get clean -y; \
apt-get autoremove -y
RUN locale-gen en_GB.UTF-8 && dpkg-reconfigure locales
RUN echo "Europe/London" > /etc/timezone; dpkg-reconfigure -f noninteractive tzdata
ONBUILD RUN git clone https://github.com/sstephenson/ruby-build.git
ONBUILD RUN cd ruby-build && ./install.sh
ONBUILD RUN ruby-build $RUBY_VERSION /usr/local
ONBUILD RUN echo "gem: --no-document" > ~/.gemrc
ONBUILD RUN gem install bundler
ONBUILD CMD /bin/bash