-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
15 lines (13 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM php:7.4.27-fpm-bullseye
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
ADD install-composer.sh /tmp
RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
apt update && apt install -y --no-install-recommends git unzip imagemagick ffmpeg libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 && \
pecl update-channels && \
pecl install oauth-2.0.7 && \
pear install Services_JSON && \
docker-php-ext-enable oauth && \
apt remove -y libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 && \
install-php-extensions apcu bcmath bz2 exif gd gettext intl mcrypt mysqli opcache pcntl pdo_mysql redis sockets uuid zip && \
cd /tmp && chmod +x install-composer.sh && ./install-composer.sh && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer && rm install-composer.sh && \
chown -R 33:33 /var/www/