New Docker image of kiwix-serve #257

This commit is contained in:
Kelson 2019-03-23 16:34:26 +01:00
parent 472de06e6d
commit 7d2bec3e39
6 changed files with 42 additions and 0 deletions

View File

@ -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
================= =================

View File

@ -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
View 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
View 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
```
![screenshot_1.png](https://github.com/kiwix/kiwix-tools/raw/master/docker/server/pictures/screenshot_1.png)
![screenshot_2.png](https://github.com/kiwix/kiwix-tools/raw/master/docker/server/pictures/screenshot_2.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB