Skip to content

Commit

Permalink
Create Dockerfile for php fpm 8.2 with yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
alafon authored Sep 26, 2023
1 parent 6a81fa9 commit 43906e1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions php/8.2-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM php:8.2-fpm

ENV CACHE_REDIS_DSN=redis://redis

RUN apt-get update && apt-get install -y wget libzip-dev git unzip gnupg libicu-dev librabbitmq-dev supervisor \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn && rm -rf /var/lib/apt/lists/*

RUN pecl install -o -f redis apcu amqp \
&& docker-php-ext-enable redis apcu amqp \
&& docker-php-ext-configure intl \
&& docker-php-ext-install zip intl

RUN bash -c "wget http://getcomposer.org/composer-stable.phar && mv composer-stable.phar /usr/local/bin/composer"
RUN chmod +x /usr/local/bin/composer

0 comments on commit 43906e1

Please sign in to comment.