-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (58 loc) · 1.6 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
FROM alpine:3.8
# make sure you can use HTTPS
RUN apk add --update ca-certificates
# copy public key
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
# add repositories
RUN echo "http://dl-cdn.alpinelinux.org/alpine/v3.8/main" > /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/v3.8/community" >> /etc/apk/repositories && \
echo "@php https://dl.bintray.com/php-alpine/v3.8/php-7.2" >> /etc/apk/repositories
# remove cache and tmp files
RUN rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
# install Ansible, PHP, PHP extensions and necesary packages
RUN apk add --no-cache --update ansible \
bash \
curl \
git \
libressl \
nodejs \
nodejs-npm \
openssh \
php7@php \
php7-apcu@php \
php7-bcmath@php \
php7-common@php \
php7-ctype@php \
php7-curl@php \
php7-dev@php \
php7-dom@php \
php7-exif@php \
php7-fpm@php \
php7-gd@php \
php7-iconv@php \
php7-intl@php \
php7-json@php \
php7-mbstring@php \
php7-mysqlnd@php \
php7-opcache@php \
php7-openssl@php \
php7-pcntl@php \
php7-pdo@php \
php7-pdo_mysql@php \
php7-pdo_pgsql@php \
php7-phar@php \
php7-posix@php \
php7-redis@php \
php7-session@php \
php7-sockets@php \
php7-xdebug@php \
php7-xml@php \
php7-xsl@php \
php7-zip@php \
php7-zlib@php
# create symlink for php7
RUN ln -sf /usr/bin/php7 /usr/bin/php
# install Composer.
RUN curl -sS https://getcomposer.org/installer | php \
&& chmod +x composer.phar && mv composer.phar /usr/local/bin/composer