Skip to content

Commit 07cbd07

Browse files
authored
Merge pull request #55 from appwrite/chore-fix-vulnerabilities
Fix 0.10.5 vulnerabilities
2 parents 47ec693 + 9a01b43 commit 07cbd07

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Dockerfile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ FROM $BASEIMAGE AS final
170170

171171
LABEL maintainer="team@appwrite.io"
172172

173-
ENV DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
174-
ENV DOCKER_COMPOSE_VERSION="v2.33.1"
175-
176173
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
177174

178175
RUN set -ex \
@@ -181,6 +178,7 @@ RUN set -ex \
181178

182179
RUN \
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-
225218
WORKDIR /usr/src/code
226219

227220
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/

tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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"]

0 commit comments

Comments
 (0)