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 <noreply@anthropic.com>
This commit is contained in:
2026-02-02 16:04:56 +09:00
parent d407e95d1c
commit c562116568
2 changed files with 15 additions and 1 deletions

View File

@@ -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

View File

@@ -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