forked from marcelgwerder/laravel-api-handler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (16 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM php:7.4-fpm-alpine
RUN apk add --update $PHPIZE_DEPS icu-dev freetype-dev oniguruma-dev tidyhtml-dev curl curl-dev git libjpeg-turbo-dev libpng-dev libxml2-dev libzip-dev openssh-client php7-json php7-openssl php7-pdo php7-pdo_mysql php7-session php7-simplexml php7-tokenizer php7-xml imagemagick imagemagick-libs imagemagick-dev php7-imagick php7-pcntl php7-zip sqlite \
&& docker-php-ext-configure gd --with-jpeg --with-freetype \
&& docker-php-ext-configure intl \
&& docker-php-ext-install mbstring iconv soap sockets exif bcmath pdo_mysql pcntl curl json tidy intl calendar \
&& docker-php-ext-enable mbstring iconv soap sockets exif bcmath pdo_mysql pcntl curl json tidy intl calendar
RUN pecl install redis && docker-php-ext-enable redis
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/bin/composer \
&& mkdir -m777 /.composer
RUN composer selfupdate --1
COPY . .
ENV COMPOSER_MEMORY_LIMIT=-1
CMD composer update -vvv