Skip to content

Commit bdf1e6b

Browse files
Update README.md
1 parent 30786ad commit bdf1e6b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
# alpine-aws-python-lambda
2-
Lightweight [docker image](https://hub.docker.com/r/kilna/alpine-aws-python-lambda/) for running
3-
and packaging python-based AWS lambda code. This is based on [nficano](https://github.com/nficano/)'s
4-
super useful [python-lambda library](https://github.com/nficano/python-lambda/)
2+
Lightweight [docker image](https://hub.docker.com/r/kilna/alpine-aws-python-lambda/) for running and packaging python-based AWS lambda code. This is based on [nficano](https://github.com/nficano/)'s super useful [python-lambda library](https://github.com/nficano/python-lambda/)
53

64
# Usage
75

8-
An example of a usable project can be found in the [example/](./example/) directory. This lambda
9-
function takes a JSON input file like the provided [event.json](./example/event.json) and returns an
10-
ASCII-art version of the text described in it. The provided [Dockerfile](./example/Dockerfile) derives
11-
from this image and loads the current workspace into the image, then installs dependencies from the
12-
[requirements.txt](./example/requirements.txt) file.
6+
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.
137

148
To build a docker image called _example-lambda-image_ with the example lambda function in it, run:
159

@@ -36,8 +30,7 @@ If you would like to see if your lambda function builds properly, run:
3630
$ docker run example-lambda-image lambda build
3731
```
3832

39-
If you would like to get a ZIP file of the lambda function suitable for uploading to Amazon, and the
40-
build log in one command:
33+
If you would like to get a ZIP file of the lambda function suitable for uploading to Amazon, and the build log in one command:
4134

4235
```
4336
$ docker run example-lambda-image sh -c 'rm -rf build.log dist || true && lambda build &>build.log && tar -c build.log dist' | tar -x -v

0 commit comments

Comments
 (0)