Unverified Commit ba7493a8 authored by Ben Busby's avatar Ben Busby
Browse files

Add healthcheck to Dockerfile

See #184
parent d447e500
......@@ -62,4 +62,7 @@ COPY run .
EXPOSE $EXPOSE_PORT
HEALTHCHECK --interval=5m --timeout=5s \
CMD wget --no-verbose --tries=1 http://localhost:${EXPOSE_PORT}/ || exit 1
CMD config/tor/start-tor.sh & ./run
......@@ -38,8 +38,8 @@ def has_ad_content(element: str) -> bool:
bool: True/False for the element containing an ad
"""
return element.upper() in (value.upper() for value in BLACKLIST) \
or 'ⓘ' in element
return (element.upper() in (value.upper() for value in BLACKLIST)
or 'ⓘ' in element)
def get_first_link(soup: BeautifulSoup) -> str:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment