From 7453c05617e142d4132143672b52ddf652d515da Mon Sep 17 00:00:00 2001 From: Cesar Mendoza Date: Thu, 9 Mar 2023 15:18:51 -0800 Subject: [PATCH] including linux-headers package command in Docker file --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bdf02c0..93c8acd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,9 @@ WORKDIR /var/www/html FROM php:8.1.6RC1-fpm-alpine3.15 +# Install and update linux headers +RUN apk add --update linux-headers + # Install dev dependencies RUN apk add --no-cache --virtual .build-deps \ $PHPIZE_DEPS \ @@ -44,7 +47,7 @@ ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so RUN docker-php-ext-enable \ imagick \ xdebug -RUN docker-php-ext-configure zip +RUN docker-php-ext-configure zip RUN docker-php-ext-install \ curl \ pdo \ @@ -53,16 +56,16 @@ RUN docker-php-ext-install \ xml \ gd \ zip \ - bcmath + bcmath WORKDIR /var/www/html COPY src src/ COPY --from=composer_stage /usr/bin/composer /usr/bin/composer COPY composer.json /var/www/html/ -# This are production settings, I'm running with 'no-dev', adjust accordingly -# if you need it +# This are production settings, I'm running with 'no-dev', adjust accordingly +# if you need it RUN composer install CMD ["php-fpm"] -EXPOSE 9000 \ No newline at end of file +EXPOSE 9000