Skip to content

Commit

Permalink
Merge pull request #1014 from mjsafarali/chore/docker-file-optimization
Browse files Browse the repository at this point in the history
[2.x] Dockerfile Optimization
  • Loading branch information
nunomaduro authored Dec 17, 2023
2 parents 9ee4191 + 4f35dbc commit 4522cb5
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
ARG PHP=8.1
FROM php:${PHP}-cli-alpine

RUN apk update \
&& apk add zip libzip-dev icu-dev git
RUN apk update && apk add \
zip libzip-dev icu-dev git \

RUN docker-php-ext-configure zip
RUN docker-php-ext-install zip
RUN docker-php-ext-enable zip
RUN docker-php-ext-configure zip intl
RUN docker-php-ext-install zip intl
RUN docker-php-ext-enable zip intl

RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl
RUN docker-php-ext-enable intl

RUN apk add --no-cache $PHPIZE_DEPS linux-headers
RUN apk add --no-cache linux-headers
RUN pecl install xdebug
RUN docker-php-ext-enable xdebug

COPY --from=composer:2 /usr/bin/composer /usr/bin/composer

WORKDIR /var/www/html
Expand Down

0 comments on commit 4522cb5

Please sign in to comment.