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
Lightweight docker image for running and packaging python-based AWS lambda code
4
12
5
13
## Links
@@ -16,7 +24,7 @@ In order to use this, you will have your project derive its own Dockerfile based
16
24
17
25
## Usage
18
26
19
-
An example of a usable project can be found in the [example/](./example/) directory. This lambda function takes a JSON input file like the provided [event.json](./example/event.json) and returns an ASCII-art version of the text described in it. The provided [Dockerfile](./example/Dockerfile) derives from this image and loads the current workspace into the image, then installs dependencies from the [requirements.txt](./example/requirements.txt) file.
27
+
An example of a usable project can be found in the [example/](./example/) directory. This lambda function in [service.py](./example/service.py)takes a JSON input file like the one provided in [event.json](./example/event.json) and returns an ASCII-art version of the text described in it. The provided [Dockerfile](./example/Dockerfile) derives from this image and loads the current workspace into the image at the path _/lambda_, then installs dependencies from the [requirements.txt](./example/requirements.txt) file.
20
28
21
29
To build a docker image called _example-lambda-image_ with the example lambda function in it, run:
22
30
@@ -36,7 +44,7 @@ $ docker run example-lambda-image lambda invoke
36
44
|/
37
45
```
38
46
39
-
If you would like to see if your lambda function builds properly, run:
47
+
If you would like to see if your lambda function build (which will package the lambda and all dependencies within the container into a zip file), run:
0 commit comments