mirror of
https://github.com/getzola/zola
synced 2024-11-10 14:24:27 +00:00
13 lines
446 B
Docker
13 lines
446 B
Docker
FROM bitnami/minideb AS builder
|
|
RUN install_packages python-pip curl tar python-setuptools rsync binutils
|
|
RUN pip install dockerize
|
|
RUN mkdir -p /workdir
|
|
WORKDIR /workdir
|
|
RUN curl -L https://github.com/getzola/zola/releases/download/$DOCKER_TAG/zola-$DOCKER_TAG-x86_64-unknown-linux-gnu.tar.gz | tar xz
|
|
RUN mv zola /usr/bin
|
|
RUN dockerize -n -o /workdir /usr/bin/zola
|
|
|
|
|
|
FROM scratch
|
|
COPY --from=builder /workdir .
|
|
ENTRYPOINT [ "/usr/bin/zola" ]
|