add schema to container
All checks were successful
Deploy to Server / deploy (push) Successful in 32s

This commit is contained in:
2026-04-10 20:16:40 -05:00
parent 3ffea6a92b
commit cf09ba95dd

View File

@@ -11,7 +11,9 @@ RUN npm run build
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
# schema.sql is read by the migrate script at runtime
COPY server/src/db/schema.sql ./dist/db/schema.sql
COPY server/package.json server/package-lock.json* ./
RUN npm install --omit=dev
EXPOSE 3001
CMD ["node", "dist/index.js"]
CMD ["sh", "-c", "node dist/db/migrate.js && node dist/index.js"]