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

贡献指南

打开贡献指南

调研方向

打开 README.md,找到包含 COPY --from=build-image 步骤的多阶段 Docker 示例。将其与报告中的 DEPLOYABLE 阶段进行比较,包括其 ARG、WORKDIR、ENTRYPOINT 和 CMD;如果报告中的方法合适,则更新该示例,并验证文档中的构建和启动流程是否一致。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, node.js
领域
devops, documentation
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。