Add WASM files to standalone output

This commit is contained in:
continuist 2025-10-25 21:58:53 -04:00
parent 1b1215b4ed
commit 9842715e9a

View file

@ -65,6 +65,9 @@ COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static COPY --from=builder /app/.next/static ./.next/static
# Copy WASM files to standalone output
COPY --from=builder /app/src/lib/wasm-pkg ./src/lib/wasm-pkg/
# non-root (optional) # non-root (optional)
RUN addgroup --system --gid 1001 nodejs \ RUN addgroup --system --gid 1001 nodejs \
&& adduser --system --uid 1001 nextjs \ && adduser --system --uid 1001 nextjs \