forked from vyuldashev/docker-ci-php-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
97 lines (86 loc) · 2.09 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
92
93
94
95
96
97
FROM ubuntu:18.04
RUN export LC_ALL=C.UTF-8
RUN DEBIAN_FRONTEND=noninteractive
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update
RUN apt-get install -y \
sudo \
autoconf \
autogen \
language-pack-en-base \
wget \
zip \
unzip \
curl \
rsync \
ssh \
openssh-client \
git \
build-essential \
apt-utils \
software-properties-common \
nasm \
libjpeg-dev \
libpng-dev \
libpng16-16
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
# PHP
RUN LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php && apt-get update && apt-get install -y php7.2
RUN apt-get install -y \
php7.2-curl \
php7.2-gd \
php7.2-dev \
php7.2-xml \
php7.2-bcmath \
php7.2-mysql \
php7.2-mbstring \
php7.2-zip \
php7.2-bz2 \
php7.2-sqlite \
php7.2-soap \
php7.2-json \
php7.2-intl \
php7.2-imap \
php7.2-imagick \
php-xdebug \
php-memcached
RUN command -v php
# Composer
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer && \
composer self-update --preview
RUN command -v composer
# PHPUnit
RUN wget https://phar.phpunit.de/phpunit.phar
RUN chmod +x phpunit.phar
RUN mv phpunit.phar /usr/local/bin/phpunit
RUN command -v phpunit
# Security Checker
RUN wget http://get.sensiolabs.org/security-checker.phar
RUN chmod +x security-checker.phar
RUN mv security-checker.phar /usr/local/bin/security-checker
RUN command -v security-checker
# Node.js
RUN curl -sL https://deb.nodesource.com/setup_11.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install nodejs -y
RUN npm install npm@6.4.1 -g
RUN command -v node
RUN command -v npm
# Ansible
RUN apt-add-repository ppa:ansible/ansible
RUN apt-get update
RUN apt-get install ansible -y
RUN command -v ansible
# Other
RUN mkdir ~/.ssh
RUN touch ~/.ssh_config
# Display versions installed
RUN php -v
RUN composer --version
RUN phpunit --version
RUN security-checker --version
RUN node -v
RUN npm -v
RUN ansible --version