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