Last active
September 30, 2019 04:58
-
-
Save ProteinPig/0c74fde90f5e867542372889f96a2095 to your computer and use it in GitHub Desktop.
Subfinder镜像构建
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.4" | |
services: | |
# SubFinder – Subtitles search & download | |
subfinder: | |
image: proteinpig/subfinder | |
container_name: subfinder | |
restart: always | |
cpus: 0.5 | |
volumes: | |
- ${USERDIR}/docker/subfinder:/config | |
- /mnt/Media/Movies:/movies | |
- /etc/localtime:/etc/localtime:ro | |
- /etc/timezone:/etc/timezone:ro | |
environment: | |
- SUBFIND_DIR=/movies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7-alpine | |
WORKDIR /config | |
RUN apk add --no-cache --virtual .build-deps gcc libc-dev libxml2-dev libxslt-dev unrar | |
RUN pip install subfinder | |
RUN echo '*/30 * * * * subfinder ${SUBFIND_DIR} -c /config/subfinder.json' > /etc/crontabs/root | |
CMD ["crond", "-f", "-d", "8"] | |
VOLUME /config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lnguages": ["zh", "en", "zh_chs"], | |
"method": ["shooter", "zimuzu", "zimuku"], | |
"api_urls": { | |
"zimuku": "http://www.zimuku.la/search", | |
"zimuzu": "http://www.zmz2019.com/search", | |
"zimuzu_subtitle_api_url": "http://got001.com/api/v1/static/subtitle/detail" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment