Fixed missing read permission on all scripts

This commit is contained in:
Muhamad Aditya Prima 2024-12-27 15:03:42 +07:00
parent 1213c4f47a
commit 595a49aa10
2 changed files with 5 additions and 2 deletions

View File

@ -12,10 +12,13 @@ ARG WITH_DATABASE=false
ENV WITH_APACHE=${WITH_APACHE}
ENV WITH_DATABASE=${WITH_DATABASE}
ADD ./scripts/apache-entrypoint.sh /usr/local/bin/entrypoint.sh ;
# Create directory, and install required php app
RUN /bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh; \
rm -vrf /var/cache/apk/*
rm -vrf /var/cache/apk/*; \
chmod +rx /usr/local/bin/entrypoint.sh ;
FROM scratch

View File

@ -30,7 +30,7 @@ RUN /bin/mkdir -p /app ; \
php${PHP_VER_SHORT}-cli php${PHP_VER_SHORT}-phar \
php${PHP_VER_SHORT}-iconv php${PHP_VER_SHORT}-mbstring \
php${PHP_VER_SHORT}-json ; \
/bin/chmod +x /tmp/setup.sh /usr/local/bin/composer ;
/bin/chmod +rx /tmp/setup.sh /usr/local/bin/composer ;
# Create symlinks to /usr/bin/php in case it doesn't exists
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0