forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
91 lines (72 loc) · 2.72 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
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
82
83
84
85
86
87
88
89
90
91
FROM ubuntu:17.10
### SYSTEM DEPENDENCIES
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
build-essential \
dirmngr \
git \
curl \
wget \
zlib1g-dev \
liblzma-dev \
tzdata \
zip \
unzip \
locales \
openssh-client \
make \
libssl-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
&& locale-gen en_US.UTF-8
ENV LC_ALL en_US.UTF-8
### RUBY
# Install Ruby 2.5, update RubyGems, and install Bundler
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C3173AA6 \
&& echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu artful main" > /etc/apt/sources.list.d/brightbox.list \
&& apt-get update \
&& apt-get install -y ruby2.5 ruby2.5-dev \
&& gem update --system 2.7.6 \
&& gem install --no-ri --no-rdoc bundler -v 1.16.1
### PYTHON
# Install Python 3.6 with pyenv. Using pyenv lets us support multiple Pythons
RUN git clone https://github.com/pyenv/pyenv.git /usr/local/.pyenv
ENV PYENV_ROOT=/usr/local/.pyenv
ENV PATH="$PYENV_ROOT/bin:$PATH"
RUN pyenv install 3.6.5 && pyenv global 3.6.5
### JAVASCRIPT
# Install Node 8.0 and Yarn
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install -y yarn
### PHP
# Install PHP 7.2 and Composer
RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu artful main" >> /etc/apt/sources.list.d/ondrej-php.list \
&& echo "deb-src http://ppa.launchpad.net/ondrej/php/ubuntu artful main" >> /etc/apt/sources.list.d/ondrej-php.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \
&& apt-get update \
&& apt-get install -y php7.2 php7.2-xml php7.2-zip \
&& curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer
### Elixir
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb \
&& apt-get update \
&& apt-get install -y esl-erlang \
&& wget https://github.com/elixir-lang/elixir/releases/download/v1.6.4/Precompiled.zip \
&& unzip -d /usr/local/elixir -x Precompiled.zip \
&& rm -f Precompiled.zip
ENV PATH="$PATH:/usr/local/elixir/bin"
RUN mix local.hex --force
### Rust
ENV RUSTUP_HOME=/opt/rust
RUN export CARGO_HOME=/opt/rust ; curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="${PATH}:/opt/rust/bin"