aws / aws/aws-lambda-nodejs-runtime-interface-client

requesting changes in readme.md

未關閉
#40 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
documentation
主要語言
TypeScript
星號
224
分支
60
PR 合併指標
30 天內沒有已合併 PR

描述

In the multistage docker script, these __didn't__ work for me:

```bash
# Copy in the built dependencies
COPY --from=build-image ${FUNCTION_DIR} ${FUNCTION_DIR}
```
Doing the above resulted in:

`Error: Error loading shared library libnghttp2.so.14: No such file or directory (needed by /runnable/node_modules/aws-lambda-ric/build/Release/runtime-client.node)`

What worked for me is:

```bash
...

FROM build-image AS DEPLOYABLE

# Include global arg in this stage of the build
ARG FUNCTION_DIR

# Set working directory to function root directory
WORKDIR ${FUNCTION_DIR}

ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric"]
CMD ["app.handler"]
```

You might consider changing the README to use that instead?

Thanks!
Bryan

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。