Browse Source
Merge pull request #86 from vernu/fix-docker-build2
fix dockerfile
pull/88/head
Israel Abebe
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
3 deletions
-
web/Dockerfile
|
|
|
@ -57,12 +57,11 @@ COPY --from=builder --chown=nextjs:nodejs /app/public ./public |
|
|
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ |
|
|
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static |
|
|
|
|
|
|
|
# Copy Prisma schema and generate client during runtime |
|
|
|
COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma |
|
|
|
|
|
|
|
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 |
|
|
|
# Install only production dependencies |
|
|
|
RUN pnpm install --prod --frozen-lockfile |
|
|
|
|
|
|
|
# Switch to non-root user |
|
|
|
|