feat(docker): refactor to use pre-built images

- Add build/load script for image management
- Use .env config for image naming and PHP version
- Switch to www-data user in Dockerfile
- Update compose.yaml to use pre-built images
- Add .dockerignore
- Simplify entrypoint script
This commit is contained in:
2025-12-10 02:57:17 +03:00
parent 8795c78230
commit 49b7d83dfa
8 changed files with 103 additions and 61 deletions

View File

@@ -13,17 +13,12 @@ services:
condition: service_started
php-fpm:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
image: "${IMAGE_NAME}:${IMAGE_TAG}"
user: "${APP_UID}:${APP_GID}"
env_file:
- .env
volumes:
- ./:/var/www
- ./docker/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
depends_on:
mysql:
condition: service_started