feat: add Docker support and enhance environment configuration

- Introduce .dockerignore for Docker build optimization
- Add Dockerfile for containerization setup
- Update .env.example to clear Sentry variables and rename HOST to TELEGRAM_HOST
- Modify astro.config.mjs to conditionally exclude SSR dependencies in Docker builds
- Adjust postinstall script to safely handle missing .git directory
- Refactor telegram host retrieval for clarity and consistency
This commit is contained in:
ccbikai
2024-08-31 13:41:16 +08:00
parent a7dd0cd486
commit 2b9807bd89
7 changed files with 49 additions and 15 deletions

View File

@@ -12,13 +12,11 @@
"astro": "astro",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"postinstall": "simple-git-hooks"
"postinstall": "test -d .git && simple-git-hooks || true"
},
"dependencies": {
"@astrojs/rss": "^4.0.7",
"@sentry/astro": "^8.26.0",
"astro": "^4.14.5",
"astro-seo": "^0.8.4",
"cheerio": "1.0.0-rc.12",
"dayjs": "^1.11.13",
"flourite": "^1.3.0",
@@ -35,7 +33,9 @@
"@astrojs/node": "^8.3.3",
"@astrojs/vercel": "^7.8.0",
"@types/prismjs": "^1.26.4",
"astro": "^4.14.5",
"astro-eslint-parser": "^1.0.2",
"astro-seo": "^0.8.4",
"autoprefixer": "^10.4.20",
"cssnano": "^7.0.5",
"eslint": "9.5.0",