feat: add business brand assets and health checks
This commit is contained in:
@@ -76,6 +76,8 @@ RUN chmod -R a+rX apps/web/drizzle apps/web/public apps/web/src/server/db/migrat
|
||||
USER bun
|
||||
EXPOSE 3000
|
||||
WORKDIR /app/apps/web
|
||||
HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=5 \
|
||||
CMD bun -e 'const port = process.env.PORT || "3000"; const response = await fetch("http://127.0.0.1:" + port + "/api/health"); if (!response.ok) process.exit(1)'
|
||||
CMD ["sh", "-c", "bun src/server/db/migrate.ts && bun run start"]
|
||||
|
||||
FROM base AS worker
|
||||
|
||||
Reference in New Issue
Block a user