docker-images/images/kiwix/Dockerfile

28 lines
605 B
Docker
Raw Permalink Normal View History

2022-11-05 22:10:19 +00:00
ARG REPO_LOCATION
FROM ${REPO_LOCATION}minideb AS builder
RUN install_packages software-properties-common curl ca-certificates tar gzip
RUN curl -Lo /tmp/kiwix-tools_linux-armhf.tar.gz https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-armhf.tar.gz \
&& mkdir /app \
&& tar --strip-components=1 -xf /tmp/kiwix-tools_linux-armhf.tar.gz -C /app \
&& rm /tmp/kiwix-tools_linux-armhf.tar.gz
FROM ${REPO_LOCATION}minideb
COPY --from=builder /app /app
WORKDIR /app
COPY ./run.sh /srv/run.sh
VOLUME /srv/data
WORKDIR /app
USER 10600:10600
ENTRYPOINT [ "/srv/run.sh" ]
2022-11-05 23:50:33 +00:00
CMD [ "serve" ]