File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ ARG FUNCTION_DIR="/function"
5959# Install ruby
6060RUN amazon-linux-extras install -y ruby2.6
6161
62+ # Install bundler
63+ RUN gem install bundler
64+
6265# Install the Runtime Interface Client
6366RUN gem install aws_lambda_ric
6467
@@ -68,7 +71,7 @@ COPY app.rb ${FUNCTION_DIR}
6871
6972WORKDIR ${FUNCTION_DIR}
7073
71- ENTRYPOINT ["aws_lambda_ric" ]
74+ ENTRYPOINT ["/usr/local/bin/ aws_lambda_ric" ]
7275CMD ["app.App::Handler.process" ]
7376```
7477
@@ -102,7 +105,7 @@ mkdir -p ~/.aws-lambda-rie && \
102105docker run -d -v ~ /.aws-lambda-rie:/aws-lambda -p 9000:8080 \
103106 --entrypoint /aws-lambda/aws-lambda-rie \
104107 myfunction:latest \
105- aws_lambda_ric app.App::Handler.process
108+ /usr/local/bin/ aws_lambda_ric app.App::Handler.process
106109```
107110
108111This runs the image as a container and starts up an endpoint locally at ` http://localhost:9000/2015-03-31/functions/function/invocations ` .
@@ -144,4 +147,5 @@ If you discover a potential security issue in this project we ask that you notif
144147
145148## License
146149
147- This project is licensed under the Apache-2.0 License.
150+ This project is licensed under the Apache-2.0 License.
151+
You can’t perform that action at this time.
0 commit comments