CognxSafeTrack commited on
Commit ·
222146f
1
Parent(s): b1c5720
fix(docker): bust cache with REBUILD_DATE to guarantee latest code ships
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -40,6 +40,9 @@ RUN pnpm -r build
|
|
| 40 |
EXPOSE 7860
|
| 41 |
ENV PORT=7860
|
| 42 |
|
|
|
|
|
|
|
|
|
|
| 43 |
# Start command: Use TSX directly to bypass `dist` folder mismatch issues
|
| 44 |
CMD ["sh", "-c", "pnpm --filter @repo/database db:push && (tsx apps/whatsapp-worker/src/index.ts &) && tsx apps/api/src/index.ts"]
|
| 45 |
|
|
|
|
| 40 |
EXPOSE 7860
|
| 41 |
ENV PORT=7860
|
| 42 |
|
| 43 |
+
# Force Docker cache invalidation - bump date to trigger clean rebuild
|
| 44 |
+
ENV REBUILD_DATE="2026-02-21-v2"
|
| 45 |
+
|
| 46 |
# Start command: Use TSX directly to bypass `dist` folder mismatch issues
|
| 47 |
CMD ["sh", "-c", "pnpm --filter @repo/database db:push && (tsx apps/whatsapp-worker/src/index.ts &) && tsx apps/api/src/index.ts"]
|
| 48 |
|