forked from vyuldashev/docker-ci-php-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
82 lines (72 loc) · 1.7 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
FROM ubuntu:18.04
ENV TZ=UTC
RUN export LC_ALL=C.UTF-8
RUN DEBIAN_FRONTEND=noninteractive
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
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 \
php7.2-xdebug \
php-memcached
RUN command -v php
# Composer
RUN curl -sL https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer && \
chmod +x /usr/local/bin/composer && \
composer self-update --stable
RUN composer global require hirak/prestissimo
RUN command -v composer
# Node.js
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN command -v node
RUN command -v npm
# Deployment packages
RUN apt-get install -y lftp
RUN curl -sL https://rclone.org/install.sh | bash
# Other
RUN mkdir ~/.ssh
RUN touch ~/.ssh_config
# Display versions installed
RUN php -v
RUN composer --version
RUN node -v
RUN npm -v