Dockerized for dev purposes
This commit is contained in:
16
docker/php/Dockerfile
Normal file
16
docker/php/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM php:8.4-fpm
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git curl zip unzip libpq-dev \
|
||||
&& docker-php-ext-install pdo pdo_pgsql
|
||||
|
||||
# Install Node.js 20.x
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& apt-get install -y nodejs
|
||||
|
||||
# Install Composer globally
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD ["php-fpm"]
|
||||
Reference in New Issue
Block a user