Updated builder setup
Build and push PHP 7 container images / Build PHP 7 builder container images (map[os:alpine os_version:3.12 php_ver_short:7 php_version:7.3]) (push) Successful in 47s Details
Build and push PHP 7 container images / Build PHP 7 builder container images (map[os:alpine os_version:3.15 php_ver_short:7 php_version:7.4]) (push) Successful in 45s Details
Build and push PHP 7 container images / Build PHP 7 builder container images (map[os:alpine os_version:3.9 php_ver_short:7 php_version:7.2]) (push) Successful in 43s Details

This commit is contained in:
Muhamad Aditya Prima 2024-12-27 14:05:53 +07:00
parent 2fb78e65e3
commit 419e20226b
2 changed files with 5 additions and 7 deletions

View File

@ -3,7 +3,7 @@
# PHP 7.4 == 3.15
ARG OS_VERSION=3.15
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
FROM quay.io/sindigilive/alpine:${OS_VERSION}
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
ARG WITH_APACHE=false

View File

@ -15,15 +15,13 @@ SERVER_ROOT="/app"
APP_ROOT="$SERVER_ROOT/htdocs"
LOG_LEVEL="info"
if [ "$FLAVOR" == "full" ] then
for i in $(echo $PHP_LIST | tr "," "\n"); do
PHP_DEPS="${PHP_DEPS} php$PHP_VER_SHORT-$i ";
done
/sbin/apk add --update --no-cache $PHP_DEPS;
fi
# Only setup apache with full flavor parameters
# Setup apache2
if [ "$WITH_APACHE" == "true" ]; then
/usr/sbin/addgroup -g 10001 apache ;
/usr/sbin/adduser -D -u 10001 -G apache -s /bin/sh -h $APP_ROOT apache ;