chore: update docker environment to debian bookworm and php 8.2
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
services:
|
||||
php:
|
||||
platform: linux/amd64
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/php/Dockerfile
|
||||
@@ -15,7 +16,7 @@ services:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
image: mariadb:10.11
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=junghan5
|
||||
- MYSQL_DATABASE=thetool
|
||||
@@ -44,6 +45,7 @@ services:
|
||||
- db
|
||||
|
||||
db-downloader:
|
||||
platform: linux/amd64
|
||||
build:
|
||||
context: ./docker/db-downloader
|
||||
dockerfile: Dockerfile
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Use Debian 13 “Trixie” as base image
|
||||
FROM debian:trixie
|
||||
# Use Debian 12 “Bookworm” as base image
|
||||
FROM debian:bookworm
|
||||
|
||||
# Install ALL native packages from Debian 13 first
|
||||
# Install ALL native packages from Debian 12 first
|
||||
RUN apt update && \
|
||||
apt install -y \
|
||||
# wkhtmltopdf prerequisites
|
||||
@@ -9,7 +9,7 @@ RUN apt update && \
|
||||
\
|
||||
# Apache + PHP + Utils
|
||||
poppler-utils apache2 curl cron unzip \
|
||||
php8.4 php8.4-curl php8.4-cli php8.4-mysqli php8.4-gd php8.4-zip php8.4-dom php8.4-mbstring && \
|
||||
php8.2 php8.2-curl php8.2-cli php8.2-mysqli php8.2-gd php8.2-zip php8.2-dom php8.2-mbstring && \
|
||||
\
|
||||
# Install Composer
|
||||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
|
||||
@@ -30,7 +30,7 @@ RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkh
|
||||
dpkg --force-all -i wkhtmltox_0.12.6-1.stretch_amd64.deb
|
||||
|
||||
# Enable PHP in Apache2 and enable rewrite
|
||||
RUN a2enmod php8.4 \
|
||||
RUN a2enmod php8.2 \
|
||||
&& a2enmod rewrite
|
||||
|
||||
# Set working directory and copy composer.json, then run composer install
|
||||
|
||||
Reference in New Issue
Block a user