Skip to content

Commit

Permalink
fix: docker prod composer
Browse files Browse the repository at this point in the history
  • Loading branch information
julienhouyet committed Mar 15, 2024
1 parent 267e14b commit efba72a
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions docker/prod/Dockerfile.fpm
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
FROM php:8.2-fpm

RUN apt-get update && apt-get install -y \
git \
zip \
curl \
unzip \
libicu-dev \
libpq-dev \
&& docker-php-ext-install \
intl \
opcache \
pdo \
pdo_mysql
RUN docker-php-ext-install intl opcache pdo pdo_mysql
git \
zip \
curl \
unzip \
libicu-dev \
libpq-dev \
&& docker-php-ext-install \
intl \
opcache \
pdo \
pdo_mysql

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN curl -sS https://get.symfony.com/cli/installer | bash

RUN curl -sS https://get.symfony.com/cli/installer | bash -s -- --install-dir=/usr/local/bin

RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
npm install -g yarn

ENV COMPOSER_ALLOW_SUPERUSER=1

WORKDIR /app

COPY . .
RUN composer install --no-dev --optimize-autoloader --no-scripts

RUN composer require symfony/flex

RUN composer install

RUN yarn install && yarn build

EXPOSE 9000

0 comments on commit efba72a

Please # to comment.