mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 11:22:38 -04:00
New Docker image of kiwix-serve #257
This commit is contained in:
parent
472de06e6d
commit
7d2bec3e39
@ -1,3 +1,11 @@
|
|||||||
|
kiwix-tools 1.2.0
|
||||||
|
=================
|
||||||
|
|
||||||
|
kiwix-serve
|
||||||
|
-----------
|
||||||
|
|
||||||
|
* New Dockerfile of kiwix-serve
|
||||||
|
|
||||||
kiwix-tools 1.1.0
|
kiwix-tools 1.1.0
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
@ -106,6 +106,12 @@ ninja -C build uninstall
|
|||||||
Like for the installation, you might need to run the command as root
|
Like for the installation, you might need to run the command as root
|
||||||
(or using 'sudo').
|
(or using 'sudo').
|
||||||
|
|
||||||
|
Docker
|
||||||
|
------
|
||||||
|
|
||||||
|
An official Docker image of `kiwix-serve` can be found at
|
||||||
|
https://hub.docker.com/r/kiwix/kiwix-serve.
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
15
docker/server/Dockerfile
Normal file
15
docker/server/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
LABEL maintainer Emmanuel Engelhart <kelson@kiwix.org>
|
||||||
|
|
||||||
|
# Install kiwix-serve
|
||||||
|
WORKDIR /
|
||||||
|
RUN apk add --no-cache curl bzip2
|
||||||
|
RUN curl -kL https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-x86_64-1.1.0.tar.gz | tar -xz && \
|
||||||
|
mv kiwix-tools*/kiwix-serve /usr/local/bin && \
|
||||||
|
rm -r kiwix-tools*
|
||||||
|
|
||||||
|
# Run kiwix-serve
|
||||||
|
EXPOSE 80
|
||||||
|
VOLUME /data
|
||||||
|
WORKDIR /data
|
||||||
|
ENTRYPOINT ["/usr/local/bin/kiwix-serve", "--port", "80"]
|
13
docker/server/README.md
Normal file
13
docker/server/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
kiwix-serve Docker image
|
||||||
|
========================
|
||||||
|
|
||||||
|
* Download a ZIM file from <https://wiki.kiwix.org/wiki/Content>
|
||||||
|
|
||||||
|
* Given `wikipedia.zim` resides in `/tmp/zim/`, execute the following:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -v /tmp/zim:/data -p 8080:80 kiwix/kiwix-serve wikipedia.zim
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|

|
BIN
docker/server/pictures/screenshot_1.png
Normal file
BIN
docker/server/pictures/screenshot_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
docker/server/pictures/screenshot_2.png
Normal file
BIN
docker/server/pictures/screenshot_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 KiB |
Loading…
x
Reference in New Issue
Block a user