-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·40 lines (33 loc) · 968 Bytes
/
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
FROM php:8.2-fpm-alpine
RUN apk --update add wget \
curl \
git \
grep \
build-base \
libmemcached-dev \
libmcrypt-dev \
libxml2-dev \
imagemagick-dev \
pcre-dev \
libtool \
make \
autoconf \
g++ \
cyrus-sasl-dev \
libgsasl-dev \
supervisor
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN docker-php-ext-install mysqli pdo pdo_mysql xml
RUN pecl channel-update pecl.php.net \
&& pecl install memcached \
&& pecl install imagick \
&& docker-php-ext-enable memcached \
&& docker-php-ext-enable imagick
# I recommend being explicit with node version here...
# but we'll see if livewire complains
RUN apk add --update nodejs=18.14.2-r0 \
&& apk add --update npm
RUN rm /var/cache/apk/* && \
mkdir -p /var/www
COPY ./dev/docker-compose/php/supervisord-app.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]