first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
35
base/craftcms/4.4.14/Dockerfile
Normal file
35
base/craftcms/4.4.14/Dockerfile
Normal file
@@ -0,0 +1,35 @@
|
||||
FROM php:8.1-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends libjpeg62-turbo-dev libpng-dev libfreetype6-dev libonig-dev libicu-dev libzip-dev libmagickwand-dev \
|
||||
&& pecl install imagick \
|
||||
&& docker-php-ext-install bcmath gd mbstring pdo_mysql intl zip \
|
||||
&& docker-php-ext-enable imagick \
|
||||
&& sed -i 's|</policymap>| <policy domain="system" name="font" value="/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"/>\n</policymap>|' \
|
||||
/etc/ImageMagick-6/policy.xml \
|
||||
&& curl -#sSL -o /usr/local/bin/composer https://getcomposer.org/download/2.8.4/composer.phar \
|
||||
&& chmod +x /usr/local/bin/composer \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN set -ex \
|
||||
&& curl -#sSL https://github.com/craftcms/craft/archive/refs/tags/4.3.1.tar.gz | tar xz --strip-components=1 -C /var/www/html \
|
||||
&& cd /var/www/html \
|
||||
&& sed -i 's|"craftcms/cms": "^4.4.0"|"craftcms/cms": "4.4.14"|g' composer.json \
|
||||
&& sed -i 's|"craftcms/cms": "^4.4.0"|"craftcms/cms": "4.4.14"|g' composer.json.default \
|
||||
&& composer install --no-scripts \
|
||||
&& mv .env.example.dev .env \
|
||||
&& rm composer.json \
|
||||
&& mv composer.json.default composer.json \
|
||||
&& composer dump-autoload -o \
|
||||
&& CRAFT_ALLOW_SUPERUSER=1 php craft setup --interactive 0 \
|
||||
&& chown -R www-data:www-data /var/www/html \
|
||||
&& sed -i 's|DocumentRoot /var/www/html|DocumentRoot /var/www/html/web|g' /etc/apache2/sites-enabled/000-default.conf \
|
||||
&& a2enmod rewrite
|
||||
|
||||
RUN set -ex \
|
||||
&& { \
|
||||
echo "max_execution_time = 300"; \
|
||||
echo "ignore_user_abort = On"; \
|
||||
} > /usr/local/etc/php/conf.d/overrides.ini
|
Reference in New Issue
Block a user