Browse Source

Merge pull request #85 from vernu/fix-docker-build

fix docker-build issue for web
pull/86/head v2.6.0
Israel Abebe 9 months ago
committed by GitHub
parent
commit
1e602b85e1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      web/Dockerfile

5
web/Dockerfile

@ -29,8 +29,6 @@ COPY . .
# Set environment variables for building
ENV NEXT_TELEMETRY_DISABLED 1
# Generate prisma client - make sure it exists
RUN pnpm prisma generate
# Build the application
RUN pnpm build
@ -65,8 +63,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/package.json ./
COPY --from=builder --chown=nextjs:nodejs /app/pnpm-lock.yaml ./
# Install only production dependencies, including Prisma, and generate Prisma client
RUN pnpm install --prod --frozen-lockfile && \
pnpm prisma generate
RUN pnpm install --prod --frozen-lockfile
# Switch to non-root user
USER nextjs

Loading…
Cancel
Save