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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user