Added required dependencies for alpine
Build and Push alpine Image / Build and push image (push) Failing after 28s Details
Build and Push Ubuntu Image / Build and push image (push) Has been cancelled Details

This commit is contained in:
Aditya Prima 2024-03-24 00:36:11 +07:00
parent b9bfaf5071
commit 069c5fd258
1 changed files with 22 additions and 0 deletions

View File

@ -10,6 +10,28 @@ WORKDIR /tmp
USER root
# ADD apk repository
RUN printf "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing\n" >> /etc/apk/repositories
# INSTALL PHP PHAR
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-phar; exit 0
# Install php83-phar from testing if main or community doesn't exists
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-phar@testing; exit 0
# Install php83-json
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-json; exit 0
# Install php83-json from testing if main or community doesn't exists
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-json@testing; exit 0
# DOWNLOAD AND INSTALL COMPOSER
ADD https://getcomposer.org/installer ./composer-setup.php
RUN php composer-setup.php --version=${COMPOSER_VERSION} && mv composer.phar /usr/local/bin/composer && rm -f ./composer-setup.php
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*