Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ FROM $BASEIMAGE AS final

LABEL maintainer="team@appwrite.io"

ENV DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
ENV DOCKER_COMPOSE_VERSION="v2.33.1"

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN set -ex \
Expand All @@ -181,6 +178,7 @@ RUN set -ex \

RUN \
apk update \
&& apk upgrade \
&& apk add --no-cache --virtual .deps \
linux-headers \
make \
Expand Down Expand Up @@ -209,19 +207,14 @@ RUN \
libmaxminddb-dev \
certbot \
docker-cli \
docker-cli-compose \
libgomp \
git \
zip \
&& docker-php-ext-install sockets pdo_mysql pdo_pgsql intl \
&& apk del .deps \
&& rm -rf /var/cache/apk/*

RUN \
mkdir -p $DOCKER_CONFIG/cli-plugins \
&& ARCH=$(uname -m) && if [ $ARCH == "armv7l" ]; then ARCH="armv7"; fi \
&& curl -SL https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-linux-$ARCH -o $DOCKER_CONFIG/cli-plugins/docker-compose \
&& chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose

WORKDIR /usr/src/code

COPY --from=swoole /usr/local/lib/php/extensions/no-debug-non-zts-20230831/swoole.so /usr/local/lib/php/extensions/no-debug-non-zts-20230831/
Expand Down
4 changes: 4 additions & 0 deletions tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ commandTests:
command: "docker"
args: ["--version"]
expectedOutput: ["Docker version 28.*"]
- name: 'Docker Compose command'
command: "docker"
args: ["compose", "version"]
expectedOutput: ["Docker Compose version v.*"]
- name: 'PHP modules'
command: "php"
args: ["-m"]
Expand Down