-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 836 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
FROM php:8.1-fpm
# Install PHP extensions
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
install-php-extensions gd gmp intl bcmath zip pdo_mysql redis pcntl xdebug exif
# Install Supervisor & Ping & Nano
RUN apt-get update && apt-get install -y \
git \
supervisor \
iputils-ping \
nano \
unzip
#install ffmpeg and requirements for image optimizer package
RUN apt-get install -y \
ffmpeg \
jpegoptim \
pngquant \
webp
# Install Composer
RUN curl https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# add aliases
RUN echo 'alias chownw="chown -R www-data:www-data "' >> ~/.bashrc
CMD ["php-fpm"]
EXPOSE 9000