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

requesting changes in readme.md

オープン
#40 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。