Added git
Build and Push alpine Image / Build and push image (push) Failing after 27s 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 13:01:50 +07:00
parent 9cac6e96fa
commit 0b165a49ba
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,10 @@ USER root
# ADD apk repository
RUN printf "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing\n" >> /etc/apk/repositories
# Update & Upgrade first
RUN --mount=type=cache,target=/var/cache/apk \
apk update && apk upgrade && apk install git
# INSTALL PHP OpenSSL
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-openssl; exit 0

View File

@ -10,6 +10,11 @@ WORKDIR /tmp
USER root
# INSTALL GIT
RUN --mount=type=cache,target=/var/cache/apt/archives \
apt -y update && apt -y upgrade && apt -y install \
git
# 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