Add Docker support with Dockerfile, docker-compose, and entrypoint script; update .gitignore and add .dockerignore

This commit is contained in:
I-Fun
2026-04-01 11:44:46 +07:00
parent e09c8a5fa9
commit 1126877ef5
8 changed files with 403 additions and 0 deletions

51
.dockerignore Normal file
View File

@@ -0,0 +1,51 @@
# ── Git ──────────────────────────────────────
.git
.gitignore
.gitattributes
# ── Env files (use .env.docker instead) ─────
.env
.env.local
.env.*.local
# ── Node / build artifacts ───────────────────
node_modules
npm-debug.log*
# ── Laravel local storage (mounted as volume)
storage/logs/*
storage/framework/cache/*
storage/framework/sessions/*
storage/framework/views/*
storage/app/private/*
# ── Laravel bootstrap cache ──────────────────
bootstrap/cache/*.php
# ── SQLite database (mounted as volume) ──────
database/database.sqlite
# ── Compiled assets (rebuilt in Dockerfile) ──
public/build
public/hot
# ── Tests / dev tooling ──────────────────────
tests
phpunit.xml
.editorconfig
.php-cs-fixer*
# ── IDE / OS ─────────────────────────────────
.idea
.vscode
*.DS_Store
Thumbs.db
# ── Docker config itself ─────────────────────
Dockerfile
docker-compose*.yml
docker/
# ── Claude / project meta ────────────────────
.claude
README.md