-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (59 loc) · 2.01 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
FROM debian:jessie-slim
ENV DEBIAN_FRONTEND noninteractive
## Base requirements and upgrades
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
sudo \
lsb-release \
curl \
git \
make \
g++ \
libyaml-dev \
ssh
RUN apt-get dist-upgrade -y
## Install PHP
RUN apt-get update && apt-get install -y --no-install-recommends apt-transport-https ca-certificates
RUN curl -SLO https://packages.sury.org/php/apt.gpg && mv apt.gpg /etc/apt/trusted.gpg.d/php.gpg
RUN echo "deb https://packages.sury.org/php/ jessie main" > /etc/apt/sources.list.d/php.list
RUN apt-get update && apt-get install -y --no-install-recommends \
php7.1 \
php7.1-dom \
php7.1-mbstring \
php7.1-simplexml \
php7.1-xml \
php7.1-zip \
php7.1-pdo \
php7.1-tokenizer \
php7.1-mysql \
php7.1-curl \
php7.1-mcrypt
## Install Python
RUN apt-get update && apt-get install -y --no-install-recommends python python-dev python-pip
## Install AWS CLI
RUN pip install --upgrade awscli
## Install Composer
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
## Install Node.js
RUN curl -SLO https://deb.nodesource.com/setup_7.x
RUN bash setup_7.x && rm setup_7.x
RUN apt-get update && apt-get install -y --no-install-recommends nodejs
## Install Yarn
RUN curl -SLO https://dl.yarnpkg.com/debian/pubkey.gpg
RUN apt-key add pubkey.gpg
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y --no-install-recommends yarn
## Install Dredd
RUN npm install -g --progress=false -q --unsafe-perm dredd hercule
## Install Apiary
RUN apt-get update && apt-get install -y --no-install-recommends ruby-dev ruby
RUN gem install apiaryio
## Create user 'default'
RUN useradd -ms /bin/bash default
RUN usermod -aG sudo default
RUN echo "default:default" | chpasswd
USER default
WORKDIR /home/default
ENV PATH ${PATH}:vendor/bin:node_modules/.bin
ENV DEBIAN_FRONTEND teletype