Skip to content

Commit 0139e04

Browse files
authored
Merge pull request #99 from umihico/feat/publish-image
Publish public image [skip ci]
2 parents c8e827a + b2f140f commit 0139e04

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ RUN yum install atk cups-libs gtk3 libXcomposite alsa-lib \
1313
RUN pip install selenium
1414
COPY --from=build /opt/chrome-linux /opt/chrome
1515
COPY --from=build /opt/chromedriver /opt/
16-
COPY test.py ./
17-
CMD [ "test.handler" ]
16+
COPY main.py ./
17+
CMD [ "main.handler" ]

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ $ sls deploy
2020
$ sls invoke --function demo # Yay! You will get texts of example.com
2121
```
2222

23+
## Public image is available
24+
25+
If you want your image simplier and updated automatically, rewrite the Dockerfile with the following commands:
26+
27+
```Dockerfile
28+
FROM umihico/aws-lambda-selenium-python:latest
29+
30+
COPY main.py ./
31+
CMD [ "main.handler" ]
32+
```
33+
34+
Available tags are listed [here](https://hub.docker.com/r/umihico/aws-lambda-selenium-python/tags)
35+
2336
## Side Project
2437

2538
If you don't want to create functions each time for each purpose, Please check out [pythonista-chromeless](https://github.com/umihico/pythonista-chromeless)

test.py renamed to main.py

File renamed without changes.

0 commit comments

Comments
 (0)