Skip to content

Commit 5531cda

Browse files
committed
Hopefully, a smaller image.
1 parent ee02283 commit 5531cda

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

Dockerfile

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
FROM ubuntu:latest
2-
MAINTAINER Jan Szumiec <[email protected]>
3-
RUN apt-get update
4-
RUN apt-get -y install wget bzip2
5-
WORKDIR /kiwix
6-
RUN wget -q http://download.kiwix.org/bin/kiwix-linux-x86_64.tar.bz2
7-
RUN tar -xjf kiwix-linux-x86_64.tar.bz2
8-
RUN rm kiwix-linux-x86_64.tar.bz2
9-
WORKDIR kiwix
1+
FROM alpine:latest
2+
LABEL maintainer Jan Szumiec <[email protected]>
3+
RUN apk add --no-cache curl bzip2
4+
WORKDIR /
5+
RUN curl -k https://ftp.fau.de/kiwix/bin/0.10/kiwix-0.10-linux-x86_84.tar.bz2 | tar -xj
6+
RUN mv kiwix-* /kiwix
7+
WORKDIR /kiwix-data
108
VOLUME /kiwix-data
119
EXPOSE 8080
12-
CMD ["./bin/kiwix-serve", "--port", "8080", "/kiwix-data/wikipedia.zim"]
10+
ENTRYPOINT ["/kiwix/bin/kiwix-serve", "--port", "8080"]
11+
1312

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ dockerized-kiwix-server
44
> Wanna run your own wikipedia server locally? Look no further!
55
66
* Download a content file from <http://www.kiwix.org/wiki/Content>.
7-
* Rename downloaded file to `wikipedia.zim`.
87
* Given `wikipedia.zim` resides in `/tmp/wiki`, execute the following:
98

109
```
11-
docker run -v /tmp/wiki:/kiwix-data -p 8080:8080 jasiek/kiwix-server
10+
docker run -v /tmp/wiki:/kiwix-data -p 8080:8080 jasiek/kiwix-server wikipedia.zim
1211
```
1312

14-
![wikipedia1.png](snaps/wikipedia1.png)
15-
![wikipedia2.png](snaps/wikipedia2.png)
13+
![wikipedia1.png](https://github.com/jasiek/dockerized-kiwix-server/raw/master/snaps/wikipedia1.png)
14+
![wikipedia2.png](https://github.com/jasiek/dockerized-kiwix-server/raw/master/snaps/wikipedia2.png)

0 commit comments

Comments
 (0)