File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,14 +52,16 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
5252COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
5353
5454COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma
55+ COPY --from=builder --chown=nextjs:nodejs /app/node_modules/.bin/prisma ./node_modules/.bin/prisma
56+ COPY --from=builder --chown=nextjs:nodejs /app/node_modules/@prisma ./node_modules/@prisma
57+ COPY --from=builder --chown=nextjs:nodejs /app/node_modules/prisma ./node_modules/prisma
58+
5559COPY --chown=nextjs:nodejs docker-entrypoint.sh .
5660# Make sure the entrypoint is in Unix format
5761RUN apk add --no-cache dos2unix && \
5862 dos2unix docker-entrypoint.sh && \
5963 chmod +x docker-entrypoint.sh
6064
61- RUN npm install -g prisma
62-
6365USER nextjs
6466
6567EXPOSE 3000
Original file line number Diff line number Diff line change 22
33set -e
44
5- prisma migrate deploy
5+ ./node_modules/.bin/ prisma migrate deploy
66
77exec " $@ "
You can’t perform that action at this time.
0 commit comments