fix: 11a7c7828 part 3: fragile dockerfile

This commit is contained in:
trafficlunar 2026-04-21 14:29:11 +01:00
parent ba03f0d4d9
commit c41360eaad

View file

@ -28,9 +28,10 @@ ENV HOSTNAME=0.0.0.0
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/backend/.next/standalone ./standalone
COPY --from=builder /app/backend/.next/static ./standalone/backend/.next/static
COPY --from=builder /app/backend/public ./standalone/backend/public
# I know all the paths are messed up but I don't have time to fix it
COPY --from=builder /app/backend/public ./public
COPY --from=builder /app/backend/.next ./.next
COPY --from=builder /app/backend/.next/static ./.next/standalone/backend/.next/static
COPY --from=builder --chown=nextjs:nodejs /app/backend/prisma ./prisma
RUN mkdir -p /app/.next/standalone/backend/uploads && chown -R nextjs:nodejs /app/.next/standalone/backend/uploads