Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requesting changes in readme.md #40

Open
flameoftheforest opened this issue Nov 10, 2021 · 0 comments
Open

requesting changes in readme.md #40

flameoftheforest opened this issue Nov 10, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@flameoftheforest
Copy link

flameoftheforest commented Nov 10, 2021

In the multistage docker script, these didn't work for me:

# 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:

...

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

@andclt andclt added the documentation Improvements or additions to documentation label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants