forked from dustin10/VichUploaderBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
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 dustin10#1343 from garak/php82
test on php 8.2
- Loading branch information
Showing
4 changed files
with
58 additions
and
7 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
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,44 @@ | ||
FROM php:8.2.0-alpine | ||
|
||
ARG MONGODB_VERSION=1.14.0 | ||
|
||
# Install mongo | ||
RUN set -eux; \ | ||
apk add --no-cache --virtual .build-deps \ | ||
$PHPIZE_DEPS \ | ||
openssl-dev \ | ||
; \ | ||
pecl install \ | ||
mongodb-${MONGODB_VERSION} \ | ||
; \ | ||
docker-php-ext-enable \ | ||
mongodb \ | ||
; \ | ||
pecl clear-cache; \ | ||
\ | ||
runDeps="$( \ | ||
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ | ||
| tr ',' '\n' \ | ||
| sort -u \ | ||
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ | ||
)"; \ | ||
apk add --no-cache --virtual .api-add-phpexts-rundeps $runDeps \ | ||
curl \ | ||
; | ||
|
||
RUN curl -s https://getcomposer.org/installer | php | ||
|
||
RUN mv composer.phar /usr/local/bin/composer | ||
|
||
WORKDIR /srv/vich-uploader | ||
|
||
# prevent the reinstallation of vendors at every changes in the source code | ||
|
||
#COPY ./docker/script/runTests.sh ./runTests.sh | ||
COPY . ./ | ||
|
||
RUN set -eux; \ | ||
composer update --prefer-dist --ignore-platform-reqs; \ | ||
composer clear-cache | ||
|
||
CMD ["/init"] |