Add Docker Build Support

Blog posts with 'draft: true' in the frontmatter are excluded from the production artifact
--no-cache docker builds ensure fresh database build each time. Caching isn't needed do to small size anyway
This commit is contained in:
2026-04-15 12:25:20 -07:00
parent 603687c46b
commit b96f7ed3f0
6 changed files with 165 additions and 4 deletions

View File

@@ -2,8 +2,11 @@
"name": "portfolio",
"version": "1.0.50",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "bun run --watch ./index.tsx"
"dev": "bun run --watch ./index.tsx",
"build": "bun run docker:build",
"docker:build": "docker build --no-cache -t blog:latest .",
"docker:run": "docker run -d -p 3000:3000 --name blog blog:latest",
"docker:stop": "docker stop blog && docker rm blog"
},
"dependencies": {
"gray-matter": "^4.0.3",
@@ -15,4 +18,4 @@
"@types/react-dom": "^19.2.3"
},
"module": "src/index.js"
}
}