File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -7,29 +7,30 @@ This is based on the super useful python-lambda library:
77
88# Usage
99
10- An example of a usable project can be found in the ` example/ ` directory. This example lambda function
11- takes a JSON input file like event.json and returns an ASCII-art version of the text.
10+ An example of a usable project can be found in the [ example/] ( ./example/ ) directory. This example lambda function
11+ takes a JSON input file like the provided [ event.json] ( ./example/event.json ) and returns an ASCII-art version of the text.
1212
1313```
1414$ cd example/
1515```
1616
17- The ` Dockerfile ` in the example directory loads the current workspace into the image and installs
18- dependencies from the ` requirements.txt ` file:
17+ The [ Dockerfile] ( ./example/Dockerfile ) in the example directory loads the current workspace into the image and installs
18+ dependencies from the [ requirements.txt] ( ./example/requirements.txt ) file:
1919
2020```
21+ $ cat Dockerfile
2122FROM kilna/alpine-aws-python-lambda
2223COPY . /workspace
2324RUN pip install -r requirements.txt
2425```
2526
26- To build a docker image called ` example -lambda-image ` with the lambda function in it, run:
27+ To build a docker image called _ example -lambda-image _ with the lambda function in it, run:
2728
2829```
2930$ docker build --tag example-lambda-image .
3031```
3132
32- If you want to execute the lambda function against the ` event.json ` input file:
33+ If you want to execute the lambda function against the [ event.json] ( ./example/event.json ) input file:
3334
3435```
3536$ docker run example-lambda-image lambda invoke
You can’t perform that action at this time.
0 commit comments