You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

32 lines
1.1 KiB

FROM php:7.4.30-cli-bullseye@sha256:9ad19bbf4ae4367f8cf8016e194f3f4b1855c6c3b7577418ca869b4ee273a65b
SHELL [ "/bin/bash", "-exo", "pipefail", "-c" ]
# renovate: datasource=github-tags depName=composer/composer versioning=semver
ENV COMPOSER_VERSION 1.10.26
ENV COMPOSER_INSTALLER_COMMIT 459bcaab2cc03f1656dd7b065d500d0cf3070e3f
ENV COMPOSER_INSTALLER_HASH 756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3
RUN apt-get update; \
apt-get install -y --no-install-recommends \
git \
unzip \
zip \
; \
curl -o /tmp/composer-installer.php \
https://raw.githubusercontent.com/composer/getcomposer.org/${COMPOSER_INSTALLER_COMMIT}/web/installer; \
\
echo "${COMPOSER_INSTALLER_HASH} /tmp/composer-installer.php" | sha384sum -c -; \
\
php /tmp/composer-installer.php --no-ansi --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION}; \
\
composer diagnose; \
rm -f /tmp/composer-installer.php; \
\
rm -rf /var/lib/apt/lists/*;
WORKDIR /tmp
USER nobody
CMD [ "composer" ]