Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including linux-headers package RUN command to Docker file #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand All @@ -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
EXPOSE 9000