mirror of
https://github.com/getzola/zola
synced 2024-12-13 22:02:29 +00:00
Add Dockerfile
This commit is contained in:
parent
debb1529ce
commit
09c28fe3d7
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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" ]
|
Loading…
Reference in a new issue