-
Notifications
You must be signed in to change notification settings - Fork 113
/
Dockerfile
42 lines (36 loc) · 1.27 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
FROM php:8.2.25-cli
ENV DEBIAN_FRONTEND=noninteractive
ENV TERM=xterm-color
ARG DEV_MODE
ENV DEV_MODE=$DEV_MODE
COPY --from=composer:2.8.2 /usr/bin/composer /usr/bin/
COPY ./rootfilesystem/ /
RUN \
set -ex && \
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
libbrotli-dev \
libpq-dev \
libssl-dev \
supervisor \
unzip \
zlib1g-dev \
--no-install-recommends && \
# PHP extension pdo_mysql is included since 4.8.12+ and 5.0.1+.
docker-php-ext-install pdo_mysql && \
pecl channel-update pecl.php.net && \
pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-6.1.0 && \
# PHP extension Redis is included since 4.8.12+ and 5.0.1+.
docker-php-ext-enable redis && \
install-swoole.sh 5.1.5 \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-brotli \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
mkdir -p /var/log/supervisor && \
rm -rf /var/lib/apt/lists/* /usr/bin/qemu-*-static
ENTRYPOINT ["/entrypoint.sh"]
CMD []
WORKDIR "/var/www/"