-
Notifications
You must be signed in to change notification settings - Fork 113
/
Dockerfile
33 lines (27 loc) 路 1.01 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
FROM php:7.3.27-cli
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm-color
ARG DEV_MODE
ENV DEV_MODE $DEV_MODE
COPY ./rootfilesystem/ /
RUN \
curl -sfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
chmod +x /usr/bin/composer && \
composer self-update 1.10.20 && \
apt-get update && \
apt-get install -y \
libssl-dev \
supervisor \
unzip \
zlib1g-dev \
--no-install-recommends && \
install-swoole.sh 4.4.24 \
--enable-http2 \
--enable-mysqlnd \
--enable-openssl \
--enable-sockets && \
mkdir -p /var/log/supervisor && \
rm -rf /var/lib/apt/lists/* $HOME/.composer/*-old.phar /usr/bin/qemu-*-static
ENTRYPOINT ["/entrypoint.sh"]
CMD []
WORKDIR "/var/www/"