You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to install this tool globally (outside the function dir)? #50
In an attempt to reduce the time it takes to re-package, I'm looking at installing this tool globally (npm install -g aws-lambda-ric) before my function code it copied into the image to take advantage of dockers caching/layering.
The suggested solution (below) has no way of taking advantage of dockers layering. As we have to endure constant cURL rebuilds...
# Copy function code
RUN mkdir -p ${FUNCTION_DIR}
COPY myFunction/* ${FUNCTION_DIR}
WORKDIR ${FUNCTION_DIR}
# If the dependency is not in package.json uncomment the following line
# RUN npm install aws-lambda-ric
RUN npm install
It would be great to install it globally in its own step. Docker could then cache the cURL build and developers could spend their time doing something productive...
Activity
danwashusen commentedon May 17, 2022
For anyone interested the following works:
e-tip commentedon Sep 23, 2022
Thank's! I'll give it a try
florentGuiot commentedon Jan 18, 2023
Can you explain why are you installing in the /tmp folder ?
lstellway commentedon Apr 19, 2023
I had a bit of trouble getting my setup working - just sharing a more recent / complete example in case it can be helpful to anybody:
3.17.xdoesn't seem to provide thelibexecinfo-devpackage (hence, using3.16.x)npxbinary is in/usr/binvs/usr/local/binM-Elsaeed commentedon Jul 23, 2025
Solved in #70
M-Elsaeed commentedon Jul 23, 2025