1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

add tldextract

This commit is contained in:
kevin 2024-02-25 12:55:14 +08:00
parent 4651e02449
commit f1478baf34
3 changed files with 30 additions and 0 deletions

View File

@ -154,6 +154,7 @@ A collection of delicious docker recipes.
## Utility
- [x] registry-cli
- [x] tldextract
## Media

12
tldextract/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
#
# Dockerfile for tldextract
#
FROM alpine:3
RUN apk add --no-cache py3-tldextract \
&& tldextract --update \
&& tldextract --version
ENTRYPOINT ["/usr/bin/tldextract"]
CMD ["--help"]

17
tldextract/README.md Normal file
View File

@ -0,0 +1,17 @@
tldextract
==========
[tldextract][1] accurately separates a URL's subdomain, domain, and public
suffix, using the Public Suffix List (PSL).
## Tutorial
```bash
# Create an alias
$ alias tldextract='docker run --rm -u $(id -u):$(id -g) vimagick/tldextract'
# Run it
$ tldextract -j www.google.com
```
[1]: https://github.com/john-kurkowski/tldextract