tumuyan2 commited on
Commit
e0e42eb
·
verified ·
1 Parent(s): 7068694

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -6,11 +6,11 @@ WORKDIR /code
6
  RUN wget -q https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-x86_64.tar.gz
7
  RUN tar -xvzf kiwix-tools_linux-x86_64.tar.gz ; cp -R kiwix-tools_linux-x86_64-*/* . ; rm kiwix-tools* -rf
8
  RUN wget -q https://download.kiwix.org/zim/wikipedia/wikipedia_zh_all_nopic_2024-04.zim ;ls
9
- RUN echo "./kiwix-serve wikipedia_zh_all_nopic_2024-04.zim &" > kiwix.sh ; chmod +x kiwix*
10
 
11
  COPY . .
12
 
13
  EXPOSE 7860
14
 
15
  # CMD [ "kiwix-serve", "wikipedia_zh_all_nopic_2024-04.zim", "-p","7860" ]
16
- CMD ["sh","kiwix.sh"]
 
6
  RUN wget -q https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-x86_64.tar.gz
7
  RUN tar -xvzf kiwix-tools_linux-x86_64.tar.gz ; cp -R kiwix-tools_linux-x86_64-*/* . ; rm kiwix-tools* -rf
8
  RUN wget -q https://download.kiwix.org/zim/wikipedia/wikipedia_zh_all_nopic_2024-04.zim ;ls
9
+ RUN echo "exec ./kiwix-serve wikipedia_zh_all_nopic_2024-04.zim -p 7860" > kiwix.sh ; chmod +x kiwix*
10
 
11
  COPY . .
12
 
13
  EXPOSE 7860
14
 
15
  # CMD [ "kiwix-serve", "wikipedia_zh_all_nopic_2024-04.zim", "-p","7860" ]
16
+ CMD ["./kiwix.sh"]