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

Use utopia docker base for tests #21

Merged
merged 12 commits into from
May 21, 2024
12 changes: 3 additions & 9 deletions php-8.0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ COPY composer.json /usr/local/src/

RUN composer install --ignore-platform-reqs

FROM phpswoole/swoole:php8.0-alpine

WORKDIR /usr/local/src/

RUN apk add autoconf build-base

RUN docker-php-ext-enable redis

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
FROM appwrite/utopia-base:php-8.0-0.1.0 as final

RUN docker-php-ext-configure pcntl --enable-pcntl

RUN docker-php-ext-install pcntl

WORKDIR /usr/local/src/

COPY . .

COPY --from=composer /usr/local/src/vendor /usr/local/src/vendor
Expand Down
12 changes: 3 additions & 9 deletions php-8.1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ COPY composer.json /usr/local/src/

RUN composer install --ignore-platform-reqs

FROM phpswoole/swoole:php8.1-alpine

WORKDIR /usr/local/src/

RUN apk add autoconf build-base

RUN docker-php-ext-enable redis

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
FROM appwrite/utopia-base:php-8.1-0.1.0 as final

RUN docker-php-ext-configure pcntl --enable-pcntl

RUN docker-php-ext-install pcntl

WORKDIR /usr/local/src/

COPY . .

COPY --from=composer /usr/local/src/vendor /usr/local/src/vendor
Expand Down
12 changes: 3 additions & 9 deletions php-8.2.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ COPY composer.json /usr/local/src/

RUN composer install --ignore-platform-reqs

FROM phpswoole/swoole:php8.2-alpine

WORKDIR /usr/local/src/

RUN apk add autoconf build-base

RUN docker-php-ext-enable redis

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
FROM appwrite/utopia-base:php-8.2-0.1.0 as final

RUN docker-php-ext-configure pcntl --enable-pcntl

RUN docker-php-ext-install pcntl

WORKDIR /usr/local/src/

COPY . .

COPY --from=composer /usr/local/src/vendor /usr/local/src/vendor
Expand Down
12 changes: 3 additions & 9 deletions php-8.3.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ COPY composer.json /usr/local/src/

RUN composer install --ignore-platform-reqs

FROM phpswoole/swoole:php8.3-alpine

WORKDIR /usr/local/src/

RUN apk add autoconf build-base

RUN docker-php-ext-enable redis

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
FROM appwrite/utopia-base:php-8.3-0.1.0 as final

RUN docker-php-ext-configure pcntl --enable-pcntl

RUN docker-php-ext-install pcntl

WORKDIR /usr/local/src/

COPY . .

COPY --from=composer /usr/local/src/vendor /usr/local/src/vendor
Expand Down
Loading