| |
|
|
| FROM python:3.12.3-slim |
|
|
| LABEL maintainer="wzdnzd" |
|
|
| |
| ENV GIST_PAT="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" |
|
|
| |
| ENV GIST_LINK="picxbed/f1cf50cf00bd892b80dd8af70a3cd585" |
|
|
| |
| ENV CUSTOMIZE_LINK="" |
|
|
| |
| ARG PIP_INDEX_URL="https://pypi.org/simple" |
|
|
| |
| RUN apt-get update && apt-get install -y git && apt-get clean |
|
|
| WORKDIR / |
|
|
| |
| RUN git clone https://github.com/wzdnzd/aggregator.git /gpe |
|
|
| WORKDIR /aggregator |
|
|
| |
| RUN cp /gpe/requirements.txt /aggregator |
| RUN cp -r /gpe/subscribe /aggregator/subscribe |
| RUN cp /gpe/clash/clash-linux-amd /aggregator/clash |
| RUN cp /gpe/clash/Country.mmdb /aggregator/clash |
| RUN cp -r /gpe/subconverter /aggregator/subconverter |
|
|
| RUN rm -rf subconverter/subconverter-darwin-amd \ |
| && rm -rf subconverter/subconverter-darwin-arm \ |
| && rm -rf subconverter/subconverter-linux-arm \ |
| && rm -rf subconverter/subconverter-windows.exe |
|
|
| |
| RUN chmod -R 777 /aggregator |
|
|
| |
| RUN pip install -i ${PIP_INDEX_URL} --no-cache-dir -r requirements.txt |
|
|
| |
| EXPOSE 8501 |
|
|
| |
| CMD ["python", "-u", "subscribe/collect.py", "--all", "--overwrite", "--skip"] |
|
|