File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,6 @@ FROM $BASEIMAGE AS final
170170
171171LABEL maintainer="team@appwrite.io"
172172
173- ENV DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
174- ENV DOCKER_COMPOSE_VERSION="v2.33.1"
175-
176173RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
177174
178175RUN set -ex \
@@ -181,6 +178,7 @@ RUN set -ex \
181178
182179RUN \
183180 apk update \
181+ && apk upgrade \
184182 && apk add --no-cache --virtual .deps \
185183 linux-headers \
186184 make \
@@ -209,19 +207,14 @@ RUN \
209207 libmaxminddb-dev \
210208 certbot \
211209 docker-cli \
210+ docker-cli-compose \
212211 libgomp \
213212 git \
214213 zip \
215214 && docker-php-ext-install sockets pdo_mysql pdo_pgsql intl \
216215 && apk del .deps \
217216 && rm -rf /var/cache/apk/*
218217
219- RUN \
220- mkdir -p $DOCKER_CONFIG/cli-plugins \
221- && ARCH=$(uname -m) && if [ $ARCH == "armv7l" ]; then ARCH="armv7" ; fi \
222- && curl -SL https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-linux-$ARCH -o $DOCKER_CONFIG/cli-plugins/docker-compose \
223- && chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
224-
225218WORKDIR /usr/src/code
226219
227220COPY --from=swoole /usr/local/lib/php/extensions/no-debug-non-zts-20230831/swoole.so /usr/local/lib/php/extensions/no-debug-non-zts-20230831/
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ commandTests:
1717 command : " docker"
1818 args : ["--version"]
1919 expectedOutput : ["Docker version 28.*"]
20+ - name : ' Docker Compose command'
21+ command : " docker"
22+ args : ["compose", "version"]
23+ expectedOutput : ["Docker Compose version v.*"]
2024 - name : ' PHP modules'
2125 command : " php"
2226 args : ["-m"]
You can’t perform that action at this time.
0 commit comments