This repository was archived by the owner on Feb 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.ubuntu-base
81 lines (70 loc) · 2.45 KB
/
Dockerfile.ubuntu-base
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
FROM avvo/ubuntu:latest
MAINTAINER Avvo Infrastructure Team <infrastructure@avvo.com>
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
aspell-en \
aspell \
build-essential \
curl \
dtach \
git \
hunspell \
imagemagick \
language-pack-en \
libaspell-dev \
libcurl4-openssl-dev \
libffi-dev \
libhunspell-dev \
libmagick++-dev \
libmysqlclient-dev \
libqtwebkit-dev \
libreadline-dev \
libssl-dev \
libxslt1-dev \
mysql-client \
python-software-properties \
python \
redis-tools \
unzip \
vim \
wget \
xvfb \
zlib1g-dev \
&& curl -sL https://deb.nodesource.com/setup_7.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
# pip install
RUN wget https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py
# s3cmd install
RUN pip install s3cmd
# phantomjs install
ENV PHANTOMJS_VERSION 2.1.1
RUN wget -U "wget" --wait=5 https://cnpmjs.org/mirrors/phantomjs/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 \
&& tar xf phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 \
&& mv phantomjs-${PHANTOMJS_VERSION}-linux-x86_64/bin/phantomjs /usr/bin/phantomjs \
&& rm -rf phantomjs-${PHANTOMJS_VERSION}-linux-x86_64 \
&& rm phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2
# default US english language
ENV LANG=en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8
# set timezone
RUN echo "America/Los_Angeles" > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata
# install rbenv
RUN git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv \
&& git clone https://github.com/sstephenson/ruby-build.git /usr/local/rbenv/plugins/ruby-build \
&& git clone git://github.com/jf/rbenv-gemset.git /usr/local/rbenv/plugins/rbenv-gemset \
&& /usr/local/rbenv/plugins/ruby-build/install.sh
ENV PATH /usr/local/rbenv/bin:$PATH
ENV RBENV_ROOT /usr/local/rbenv
RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh \
&& echo 'export PATH=/usr/local/rbenv/bin:$PATH' >> /etc/profile.d/rbenv.sh \
&& echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /root/.bashrc \
&& echo 'export PATH=/usr/local/rbenv/bin:$PATH' >> /root/.bashrc \
&& echo 'eval "$(rbenv init -)"' >> /root/.bashrc
ENV CONFIGURE_OPTS --disable-install-doc
ENV PATH /usr/local/rbenv/bin:/usr/local/rbenv/shims:$PATH