-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
267e14b
commit efba72a
Showing
1 changed file
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |