You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
810 B
Docker
30 lines
810 B
Docker
FROM php:8.2-fpm
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
libpq-dev \
|
|
libzip-dev \
|
|
unzip \
|
|
libonig-dev \
|
|
libxml2-dev \
|
|
curl gpg && \
|
|
docker-php-ext-install -j$(nproc) pdo pdo_pgsql zip mbstring pcntl
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash ;\
|
|
apt-get update; \
|
|
apt-get install -y nodejs
|
|
|
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
|
|
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
|
|
&& php -r "unlink('composer-setup.php');"
|
|
|
|
WORKDIR /var/www/trial
|
|
COPY ./app/composer.json ./app/composer.lock ./app/package.json ./app/yarn.lock ./app/symfony.lock ./
|
|
|
|
RUN composer install && npm install -g yarn -y
|
|
|
|
COPY ./docker/fpm/bootstrap.sh /usr/local/bin/
|
|
|
|
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
|
|
|
|
|