This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,5 +1,4 @@
|
||||
# Multi-stage build for smaller final image
|
||||
FROM php:8.4-fpm-alpine AS base
|
||||
FROM php:8.4-fpm-alpine
|
||||
|
||||
# Install system dependencies
|
||||
RUN apk add --no-cache \
|
||||
@@ -14,12 +13,12 @@ RUN apk add --no-cache \
|
||||
libjpeg-turbo-dev \
|
||||
freetype-dev \
|
||||
libzip-dev \
|
||||
postgresql-dev \
|
||||
mysql-client
|
||||
mysql-client \
|
||||
icu-dev
|
||||
|
||||
# Install PHP extensions
|
||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install pdo pdo_mysql pdo_pgsql mbstring exif pcntl bcmath gd zip
|
||||
&& docker-php-ext-install pdo pdo_mysql mbstring exif pcntl bcmath gd zip intl
|
||||
|
||||
# Install Composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
@@ -43,7 +42,6 @@ RUN composer install --no-dev --optimize-autoloader
|
||||
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache \
|
||||
&& chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
|
||||
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["./start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user