Fix container networking
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM php:8.3-apache
|
||||
|
||||
# Install dependencies and PHP extensions
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpq-dev \
|
||||
curl \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& docker-php-ext-install pdo pdo_pgsql pcntl
|
||||
|
||||
# Enable Apache mod_rewrite
|
||||
RUN a2enmod rewrite
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Install composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
Reference in New Issue
Block a user