-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
95 lines (84 loc) · 2.35 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
FROM ubuntu:jammy
ENV LANG ru_RU.utf8
ARG PHP_VERSION=8.1
ENV PHP_VERSION ${PHP_VERSION}
LABEL PHP=${PHP_VERSION} \
org.label-schema.name="tonysol/php" \
org.label-schema.description=":coffee: Docker image for build and test PHP applications" \
org.label-schema.schema-version="1.0" \
org.label-schema.vcs-url="https://github.com/Tony-Sol/docker/tree/master/images/php"
RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime && \
echo "UTC" | tee /etc/timezone && \
apt-get update && \
apt-get install -fy --no-install-recommends \
apt-transport-https \
apt-utils \
lsb-release \
software-properties-common \
ca-certificates \
gpg-agent \
bash-completion \
binutils \
coreutils \
netbase \
telnet \
curl \
wget \
make \
gettext \
git \
lsof \
procps \
htop \
strace \
ltrace \
tree \
unzip \
vim \
less \
librdkafka-dev \
libyaml-dev \
traceroute \
iputils-ping
RUN add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get install -fy --no-install-recommends --ignore-missing \
php${PHP_VERSION} \
php${PHP_VERSION}-apcu \
php${PHP_VERSION}-amqp \
php${PHP_VERSION}-bcmath \
php${PHP_VERSION}-curl \
php${PHP_VERSION}-dba \
php${PHP_VERSION}-dev \
php${PHP_VERSION}-ds \
php${PHP_VERSION}-fpm \
php${PHP_VERSION}-gd \
php${PHP_VERSION}-grpc \
php${PHP_VERSION}-imap \
php${PHP_VERSION}-intl \
php${PHP_VERSION}-ldap \
php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-mcrypt \
php${PHP_VERSION}-memcache \
php${PHP_VERSION}-memcached \
php${PHP_VERSION}-mysql \
php${PHP_VERSION}-pgsql \
php${PHP_VERSION}-protobuf \
php${PHP_VERSION}-rdkafka \
php${PHP_VERSION}-redis \
php${PHP_VERSION}-soap \
php${PHP_VERSION}-xdebug \
php${PHP_VERSION}-xmlrpc \
php${PHP_VERSION}-xsl \
php${PHP_VERSION}-yaml \
php${PHP_VERSION}-zip \
&& \
update-alternatives --install /usr/sbin/php-fpm php-fpm $(which php-fpm${PHP_VERSION}) 10
COPY ${PHP_VERSION}/ /etc/php/${PHP_VERSION}/
COPY composer.* /tmp/
COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY --from=spiralscout/roadrunner /usr/bin/rr /usr/bin/rr
COPY --from=mikefarah/yq /usr/bin/yq /usr/bin/yq
EXPOSE 6001 9000 9003
WORKDIR /app
CMD [ "php-fpm", "--nodaemonize" ]