28 lines
606 B
Docker
28 lines
606 B
Docker
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" ]
|
|
|
|
CMD [ "serve" ]
|