1
0
Fork 0

📦 build(maccms10): add dockerfile for maccms10 application

- create dockerfile based on php:8-apache-bookworm
- install required dependencies (git, libzip-dev)
- configure and install php extensions (pdo_mysql, zip)
- clone maccms10 repository from github and checkout specified ref
- clean up git repository and set proper permissions for application directories
This commit is contained in:
pooneyy 2025-10-03 19:28:06 +08:00
parent 0402ea151b
commit 8f284e55b8
No known key found for this signature in database
1 changed files with 15 additions and 0 deletions

15
apps/maccms10/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
From php:8-apache-bookworm
ARG REF master
RUN apt-get update && apt-get install -y \
git \
libzip-dev && \
docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd && \
docker-php-ext-configure zip && \
docker-php-ext-install pdo_mysql zip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
git config --global --add safe.directory /var/www/html && \
git clone https://github.com/magicblack/maccms10 . && \
git checkout $REF && \
rm -rf .git && \
chmod -R 777 application runtime upload