fix(sdk_signer): force CommonJS in pkg to satisfy require() at runtime
This commit is contained in:
parent
88a0a09675
commit
dd6194b99b
@ -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"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user