build: remove prisma from dockerfile
continuous-integration/drone/push Build is failing Details

nextui
Guus van Meerveld 8 months ago
parent ff285f7812
commit c4a97e22c6

@ -1,7 +1,7 @@
FROM node:lts-alpine AS deps
WORKDIR /app
COPY package.json yarn.lock prisma ./
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
FROM node:lts-alpine AS builder
@ -9,7 +9,6 @@ WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
ENV NEXT_TELEMETRY_DISABLED 1;
RUN yarn run prisma:generate
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
FROM node:lts-alpine AS runner
@ -27,7 +26,6 @@ COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/prisma ./prisma
USER nextjs

Loading…
Cancel
Save