File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 33The simplest way to build this image locally, it's to use Docker Compose.
44To do so, you will need to create 2 files: ` CP_DB_PASSWORD.secret ` and ` DB_ROOT_PASSWORD.secret ` (files with ` .secret ` extension are git-ignored).
55
6- ```
7- echo "my_secret_password" > CP_DB_PASSWORD.secret
8- echo "turbo_secret_password" > DB_ROOT_PASSWORD.secret
6+ ``` sh
7+ export UID=$( id -u)
8+ export GID=$( id -g)
9+ echo " my_secret_password" > secrets/CP_DB_PASSWORD.secret
10+ echo " turbo_secret_password" > secrets/DB_ROOT_PASSWORD.secret
911```
1012
1113Now, you simply run:
1214
1315``` sh
14- docker- compose -f docker-compose.dev.yaml up
16+ docker compose -f docker-compose.dev.yaml up
1517```
1618
1719The container will be accessible via http://localhost:8000
Original file line number Diff line number Diff line change 1- FROM php:7.4 -apache-bullseye
1+ FROM php:8.1 -apache-bullseye
22
33# Version of ClassicPress
4- ARG version
5- ARG corerules_version=3.3.2
4+ ARG version=1.5.2
5+ ARG corerules_version=3.3.4
66ARG www_dir=/var/www/html
77
88ENV WWW_DIR=${www_dir}
@@ -17,9 +17,14 @@ ENV APACHE_RUN_GROUP=www-data
1717# Install packages
1818RUN apt-get update \
1919 && apt-get install -y \
20- locales wget \
21- libapache2-mod-security2 \
22- zlib1g-dev libpng16-16 libpng-dev libzip4 libzip-dev
20+ apt-transport-https lsb-release ca-certificates wget gnupg2 \
21+ && wget -qO - https://modsecurity.digitalwave.hu/archive.key | apt-key add - \
22+ && sh -c 'echo "deb http://modsecurity.digitalwave.hu/debian/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/dwmodsec.list' \
23+ && sh -c 'echo "deb http://modsecurity.digitalwave.hu/debian/ $(lsb_release -sc)-backports main" >> /etc/apt/sources.list.d/dwmodsec.list' \
24+ && apt-get update \
25+ && apt-get install -y \
26+ libapache2-mod-security2 libmodsecurity3 \
27+ zlib1g-dev libpng16-16 libpng-dev libzip4 libzip-dev locales
2328
2429# Ensure UTF-8
2530RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
You can’t perform that action at this time.
0 commit comments