From c56211656878cf1d971552d0e667dca97aa56572 Mon Sep 17 00:00:00 2001 From: Yutaka Kurosaki Date: Mon, 2 Feb 2026 16:04:56 +0900 Subject: [PATCH] Add PHP memory limit documentation for Docker builds - Document --build-arg PHP_MEMORY_LIMIT option for large projects - Default is 1024M, can increase to 2048M or more as needed - Update Dockerfile version label to 0.0.1 - Add notes in both English and Japanese sections Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 2 +- README.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3dc082b..4d71c74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM php:8.3-cli-alpine LABEL maintainer="Security Linter Team" LABEL description="PHP/Laravel Security Linter - Static security analysis tool" -LABEL version="1.0.0" +LABEL version="0.0.1" # Build arguments ARG PHP_MEMORY_LIMIT=1024M diff --git a/README.md b/README.md index 27fdd2f..3968e13 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,13 @@ cd php-security-linter docker build -t php-security-linter:latest . ``` +**Note:** For large projects, you may need to increase the PHP memory limit: + +```bash +# Build with 2GB memory limit (default: 1024M) +docker build --build-arg PHP_MEMORY_LIMIT=2048M -t php-security-linter:latest . +``` + **Step 2: Run** ```bash @@ -361,6 +368,13 @@ cd php-security-linter docker build -t php-security-linter:latest . ``` +**注意:** 大規模なプロジェクトでは、PHPのメモリ制限を増やす必要がある場合があります: + +```bash +# 2GBのメモリ制限でビルド(デフォルト: 1024M) +docker build --build-arg PHP_MEMORY_LIMIT=2048M -t php-security-linter:latest . +``` + **ステップ2: 実行** ```bash