fix(sdk_signer): force CommonJS in pkg to satisfy require() at runtime

This commit is contained in:
Debian 2025-09-02 14:21:00 +00:00
parent 88a0a09675
commit dd6194b99b

View File

@ -27,9 +27,7 @@ RUN addgroup -S nodejs && adduser -S nodejs -G nodejs
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist COPY --from=build /app/dist ./dist
COPY --from=build /app/pkg ./pkg COPY --from=build /app/pkg ./pkg
RUN echo '{"type":"commonjs"}' > /app/pkg/package.json
EXPOSE 9090 EXPOSE 9090
USER nodejs USER nodejs
CMD ["node", "dist/index.js"] CMD ["node", "dist/index.js"]