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

@@ -17,9 +17,9 @@ HEADER_INJECT=HEADER_INJECT
NO_FOLLOW=false
NO_INDEX=false
SENTRY_AUTH_TOKEN=SENTRY_AUTH_TOKEN
SENTRY_DSN=SENTRY_DSN
SENTRY_PROJECT=SENTRY_PROJECT
SENTRY_AUTH_TOKEN=
SENTRY_DSN=
SENTRY_PROJECT=
HOST=telegram.dog
TELEGRAM_HOST=telegram.dog
STATIC_PROXY=""