Skip to content

Commit e51f1b0

Browse files
committed
feat: Use php8 + CP 1.5.2
1 parent 9e8b240 commit e51f1b0

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

DEVELOPMENT.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
The simplest way to build this image locally, it's to use Docker Compose.
44
To 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

1113
Now, 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

1719
The container will be accessible via http://localhost:8000

classicpress/Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
66
ARG www_dir=/var/www/html
77

88
ENV WWW_DIR=${www_dir}
@@ -17,9 +17,14 @@ ENV APACHE_RUN_GROUP=www-data
1717
# Install packages
1818
RUN 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
2530
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \

0 commit comments

Comments
 (0)