updated docker pipeline to include database migrations, added dummy table to verify the pipeline works
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m52s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m52s
This commit is contained in:
parent
66eddb9a2a
commit
1a50f73c74
8 changed files with 1246 additions and 2 deletions
|
|
@ -39,6 +39,7 @@ COPY packages/db/package.json ./packages/db/
|
|||
COPY --from=builder /app/apps/api/dist ./apps/api/dist
|
||||
COPY --from=builder /app/packages/shared/dist ./packages/shared/dist
|
||||
COPY --from=builder /app/packages/db/dist ./packages/db/dist
|
||||
COPY --from=builder /app/packages/db/drizzle ./packages/db/drizzle
|
||||
RUN pnpm install --frozen-lockfile --prod
|
||||
EXPOSE 3000
|
||||
CMD ["node", "apps/api/dist/src/server.js"]
|
||||
CMD ["sh", "-c", "node packages/db/dist/src/migrate.js && node apps/api/dist/src/server.js"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue