diff --git a/Dockerfile b/Dockerfile
index 0d6f2ae77e77b4db96fb89c32eb5164688e3d37e..5c10f1805bc379ab43f6e54186bdad790e88fd13 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,7 +8,7 @@ RUN yarn install
 RUN yarn compile
 
 # Install PHP dependencies
-FROM composer:latest AS composer
+FROM composer:2 AS composer
 WORKDIR /build
 COPY --from=buildJS /build /build
 RUN cd /build/public/API && composer install