run prisma migrations in the container
This commit is contained in:
parent
dd75b2fdce
commit
3ea16c4901
@ -20,6 +20,10 @@ ENV PORT=3000
|
|||||||
|
|
||||||
COPY --from=builder /app/.next/standalone ./
|
COPY --from=builder /app/.next/standalone ./
|
||||||
COPY --from=builder /app/.next/static ./.next/static
|
COPY --from=builder /app/.next/static ./.next/static
|
||||||
|
COPY --from=builder /app/prisma ./prisma
|
||||||
|
COPY --from=builder /app/prisma.config.ts ./prisma.config.ts
|
||||||
|
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN npm install --no-save prisma@7.3.0 dotenv@17
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "server.js"]
|
CMD npx prisma migrate deploy && node server.js
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user