Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from php-vcr/405-adding-php-83-development-wo…
…rkspace-docker-image FEATURE: Added php 8.3 workspace docker image
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM php:8.3-cli-alpine | ||
|
||
ARG PUID=1000 | ||
ARG PGID=1000 | ||
|
||
RUN apk add --no-cache --virtual .build-deps \ | ||
# for extensions | ||
$PHPIZE_DEPS \ | ||
# for soap | ||
libxml2-dev \ | ||
# for xdebug \ | ||
linux-headers \ | ||
&& \ | ||
apk add --no-cache \ | ||
bash \ | ||
# for soap | ||
libxml2 \ | ||
# for composer | ||
unzip \ | ||
&& \ | ||
docker-php-ext-install soap \ | ||
&& \ | ||
pecl install \ | ||
# pcov for coverage runs | ||
pcov && docker-php-ext-enable pcov \ | ||
&& \ | ||
# for debugging | ||
pecl install xdebug && docker-php-ext-enable xdebug \ | ||
&& \ | ||
apk del .build-deps | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer | ||
|
||
WORKDIR /var/www/html | ||
|
||
# Add a non-root user to prevent files being created with root permissions on host machine. | ||
RUN addgroup -g ${PGID} user && \ | ||
adduser -u ${PUID} -G user -D user | ||
|
||
USER user |