Added required dependencies for alpine
Build and Push Ubuntu Image / Build and push image (push) Successful in 2m2s Details
Build and Push alpine Image / Build and push image (push) Failing after 3m7s Details

This commit is contained in:
Aditya Prima 2024-03-24 00:37:57 +07:00
parent 069c5fd258
commit a30156fa00
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,14 @@ USER root
# ADD apk repository
RUN printf "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing\n" >> /etc/apk/repositories
# INSTALL PHP OpenSSL
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-openssl; exit 0
# Install php83-openssl from testing if main or community doesn't exists
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-openssl@testing; exit 0
# INSTALL PHP PHAR
RUN --mount=type=cache,target=/var/cache/apk \
apk add --update php${PHP_VERSION}-phar; exit 0