forked from kiwix/kiwix-tools
parent
a365c1e720
commit
7e0805f1c1
@ -0,0 +1,15 @@
|
|||||||
|
FROM arm32v7/alpine:latest
|
||||||
|
LABEL maintainer Sebastian Rojo <sebastian.rojo@sapian.com.co>
|
||||||
|
|
||||||
|
# Install kiwix-serve
|
||||||
|
WORKDIR /
|
||||||
|
RUN apk add --no-cache curl bzip2
|
||||||
|
RUN curl -kL https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-armhf-3.0.1-1.tar.gz | tar -xz && \
|
||||||
|
mv kiwix-tools*/* /usr/local/bin && \
|
||||||
|
rm -r kiwix-tools*
|
||||||
|
|
||||||
|
# Run kiwix-serve
|
||||||
|
EXPOSE 80
|
||||||
|
VOLUME /data
|
||||||
|
WORKDIR /data
|
||||||
|
ENTRYPOINT ["/usr/local/bin/kiwix-serve", "--port", "80"]
|
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|

|
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 199 KiB |
Loading…
Reference in new issue