From e7d9d06b63a0638212a0e0ec4221c299d8100f0d Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Fri, 19 Aug 2022 12:32:01 +0500 Subject: [PATCH] install composer in Docker and remove setup-php step --- .github/workflows/ci.yml | 6 ------ Dockerfile | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06dbd950..a32cb189 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,12 +66,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.1 - coverage: pcov - - name: Get composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" diff --git a/Dockerfile b/Dockerfile index cd06ceaf..164b193a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,9 @@ RUN pecl install redis-5.3.7 sqlsrv pdo_sqlsrv \ && printf "; priority=30\nextension=pdo_sqlsrv.so\n" > /etc/php/$PHP_VERSION/mods-available/pdo_sqlsrv.ini \ && phpenmod -v $PHP_VERSION redis sqlsrv pdo_sqlsrv +# install composer +COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer + # set the system timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ && echo $TZ > /etc/timezone