Skip to content

Instantly share code, notes, and snippets.

@ProteinPig
Last active September 30, 2019 04:58
Show Gist options
  • Save ProteinPig/0c74fde90f5e867542372889f96a2095 to your computer and use it in GitHub Desktop.
Save ProteinPig/0c74fde90f5e867542372889f96a2095 to your computer and use it in GitHub Desktop.
Subfinder镜像构建
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
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
{
"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