Merge pull request #699 from leiserfg/add-dockerfile

Add Dockerfile
This commit is contained in:
Vincent Prouillet 2019-06-19 01:00:20 +02:00 committed by GitHub
commit 3057ce6b38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
Dockerfile Normal file
View file

@ -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" ]