Skip to content

Commit

Permalink
chore: simplified Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
petrknap committed Oct 12, 2024
1 parent ce289eb commit 7e7a83b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
unzip \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "copy('https://composer.github.io/installer.sig', 'composer-setup.php.sig');" \
&& php -r "if (trim(hash_file('SHA384', 'composer-setup.php')) === trim(file_get_contents('composer-setup.php.sig'))) { echo 'Installer verified' . PHP_EOL; exit(0); } else { echo 'Installer corrupt' . PHP_EOL; unlink('composer-setup.php'); unlink('composer-setup.php.sig'); exit(-1); }" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php'); unlink('composer-setup.php.sig');" \
&& mv composer.phar /usr/local/bin/composer \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
;
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
# endregion

# region included composer-library
Expand Down

0 comments on commit 7e7a83b

Please sign in to comment.