Skip to content

Commit

Permalink
Revies dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jonboiser committed Aug 15, 2017
1 parent a0473d7 commit 7a58eb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zims
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM alpine:latest
LABEL maintainer Jan Szumiec <jan.szumiec@gmail.com>
RUN apk add --no-cache curl bzip2
FROM ubuntu:xenial
RUN apt-get update
RUN apt-get install -y wget
WORKDIR /
RUN curl -k https://ftp.fau.de/kiwix/nightly/2017-08-13/kiwix-tools_linux64_2017-08-13.tar.gz | tar -xj
RUN mv kiwix-* /kiwix
WORKDIR /kiwix-data
VOLUME /kiwix-data
COPY ./zims ./zims
COPY ./scripts ./scripts
RUN ./scripts/provision.sh
RUN ./scripts/makelibrary.sh
EXPOSE 8080
ENTRYPOINT ["/kiwix/bin/kiwix-serve", "--port", "8080"]


ENTRYPOINT ["kiwix-serve", "--port", "8080", "--library", "/library.xml"]

0 comments on commit 7a58eb0

Please sign in to comment.