-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (49 loc) · 1.13 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
# Use php7.4-fpm-alpine official image
FROM php:7.4-fpm-alpine
# Install nginx, bash and supervisor
RUN apk update && apk add nginx bash supervisor
# Add "install-php-extensions" to install php extensions
# repository: https://github.com/mlocati/docker-php-extension-installer
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# Install-php-extensions
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions bcmath \
calendar \
ctype \
dom \
exif \
ffi \
fileinfo \
filter \
gd \
gettext \
gmp \
iconv \
imagick \
json \
memcached \
mysqli \
opcache \
pcntl \
pdo_mysql \
pgsql \
posix \
redis \
session \
shmop \
soap \
sockets \
sysvmsg \
sysvsem \
sysvshm \
tokenizer \
xsl \
zip
# Configure supervisord
COPY supervisord.conf /etc/supervisord.conf
# Set the workdir
WORKDIR /var/www/html
# Expose ports
EXPOSE 80
# Let supervisord start nginx & php-fpm
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]