From 09c28fe3d70cbc63c1284403a47a1d6ff542dfcb Mon Sep 17 00:00:00 2001 From: leiserfg Date: Thu, 30 May 2019 22:58:52 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..804e7465 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +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 +ENV DOCKER_TAG v0.7.0 +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" ]