FROM python:3.9 WORKDIR /code RUN wget -q https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-x86_64.tar.gz RUN tar -xvzf kiwix-tools_linux-x86_64.tar.gz ; cp -R kiwix-tools_linux-x86_64-*/* . ; rm kiwix-tools* -rf RUN wget -q https://download.kiwix.org/zim/wikipedia/wikipedia_zh_all_nopic_2024-04.zim # RUN echo "exec ./kiwix-serve wikipedia_zh_all_nopic_2024-04.zim -p 7860" > kiwix.sh RUN chmod +x kiwix* ; ls -l COPY . . # EXPOSE 7860 # CMD [ "kiwix-serve", "wikipedia_zh_all_nopic_2024-04.zim", "-p","7860" ] # CMD ["./kiwix.sh"] CMD ["./kiwix-serve", "wikipedia_zh_all_nopic_2024-04.zim", "-p", "7860"]