Skip to content

Commit dcc5062

Browse files
Update README.md
1 parent 0e47c12 commit dcc5062

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,15 @@ 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/](./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.
10+
An example of a usable project can be found in the [example/](./example/) directory. This 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
12+
described in it. The provided [Dockerfile](./example/Dockerfile) derives from this image and loads the current workspace
13+
into the image, then installs dependencies from the [requirements.txt](./example/requirements.txt) file.
1214

13-
```
14-
$ cd example/
15-
```
16-
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:
19-
20-
```
21-
$ cat Dockerfile
22-
FROM kilna/alpine-aws-python-lambda
23-
COPY . /workspace
24-
RUN pip install -r requirements.txt
25-
```
26-
27-
To build a docker image called _example-lambda-image_ with the lambda function in it, run:
15+
To build a docker image called _example-lambda-image_ with the example lambda function in it, run:
2816

2917
```
18+
$ cd example/
3019
$ docker build --tag example-lambda-image .
3120
```
3221

0 commit comments

Comments
 (0)