mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-11 17:26:32 +02:00
feat: Implement database initialization script to create ai_supplier_context and session_snapshots tables on application startup.
This commit is contained in:
1 parent
3438d1b35d
commit
20aa71f71a
3 files changed
+84
-4
No files matched your search
+4
-2
@@ -49,6 +49,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
# Grant write access to /app for settings persistence
|
||||
RUN chown -R nextjs:nodejs /app
|
||||
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/scripts ./scripts
|
||||
|
||||
USER nextjs
|
||||
|
||||
EXPOSE 5643
|
||||
@@ -57,5 +59,5 @@ ENV PORT=5643
|
||||
# set hostname to localhost
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
# Run the standalone server
|
||||
CMD ["node", "server.js"]
|
||||
# Run the DB init script, then start the standalone server
|
||||
CMD node scripts/db-init.js && node server.js
|
||||
Reference in new issue
Block a user