FROM php:7.4-fpm-alpine RUN apk add --update libzip-dev curl-dev &&\ docker-php-ext-install curl && \ apk del gcc g++ &&\ rm -rf /var/cache/apk/* RUN apk add --no-cache \ zlib-dev \ icu-dev \ libpng-dev \ oniguruma-dev \ libpq-dev RUN docker-php-ext-install \ curl \ mbstring \ intl \ pdo \ pdo_pgsql \ pgsql \ tokenizer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer RUN rm -rf /var/cache/apk/* WORKDIR /var/www COPY composer.json composer.lock ./ COPY . . RUN chmod +x artisan RUN composer install RUN composer dump-autoload --optimize EXPOSE 80 CMD php -S 0.0.0.0:80