Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Commit 150c307

Browse files
authored
Merge pull request #35 from utopia-php/fix-compatibility
Fix: array-like compatibility
2 parents 1af73dd + 30eeb03 commit 150c307

10 files changed

Lines changed: 2201 additions & 168 deletions

File tree

Dockerfile

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,56 +8,18 @@ COPY ./composer.lock /src/
88
RUN composer install --ignore-platform-reqs --optimize-autoloader \
99
--no-plugins --no-scripts --prefer-dist
1010

11-
FROM php:8.0.18-cli-alpine3.15 as step1
12-
13-
ENV PHP_SWOOLE_VERSION=v5.0.2
14-
15-
RUN \
16-
apk add --no-cache --virtual .deps \
17-
make \
18-
automake \
19-
autoconf \
20-
gcc \
21-
g++ \
22-
git \
23-
zlib-dev
24-
25-
RUN \
26-
## Swoole Extension
27-
git clone --depth 1 --branch $PHP_SWOOLE_VERSION https://github.com/swoole/swoole-src.git && \
28-
cd swoole-src && \
29-
phpize && \
30-
./configure --enable-http2 && \
31-
make && make install && \
32-
cd ..
33-
34-
FROM php:8.0-cli-alpine as final
11+
FROM appwrite/base:0.10.4 AS final
3512

3613
LABEL maintainer="team@appwrite.io"
3714

38-
RUN \
39-
apk update \
40-
&& apk add --no-cache --virtual .deps \
41-
gcc \
42-
g++ \
43-
&& apk add --no-cache \
44-
libstdc++ \
45-
&& apk del .deps \
46-
&& rm -rf /var/cache/apk/*
47-
4815
WORKDIR /code
4916

5017
COPY --from=step0 /src/vendor /code/vendor
51-
COPY --from=step1 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/swoole.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
5218

5319
# Add Source Code
5420
COPY ./src /code/src
5521
COPY ./phpunit.xml /code/
5622

57-
58-
# Enable Extensions
59-
RUN echo extension=swoole.so >> /usr/local/etc/php/conf.d/swoole.ini
60-
6123
EXPOSE 80
6224

6325
CMD [ "php", "tests/e2e/server.php"]

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@
2323
"laravel/pint": "1.2.*",
2424
"phpstan/phpstan": "^1.10"
2525
},
26-
"minimum-stability": "dev"
26+
"minimum-stability": "dev",
27+
"config": {
28+
"allow-plugins": {
29+
"php-http/discovery": true,
30+
"tbachert/spi": true
31+
}
32+
}
2733
}

0 commit comments

Comments
 (0)