rei_nodenzola_docker/Dockerfile

14 lines
516 B
Docker

FROM rust:1.49.0-slim
# install needed APT packages, then clear out the cache to reduce image size bloat
RUN apt-get -qq update && \
apt-get -yqq install pkg-config nodejs npm git rsync python3 python3-pil && \
rm -r /var/cache/apt
# install zola from source, then remove (heavy) cargo temporaries to reduce bloat
RUN cargo install --git https://bics.ga/reivilibre/mirror-zola.git --rev 1ef8c85f53b4988fdafc0e6271cce590515d55aa && \
rm -r /usr/local/cargo/registry && \
rm -r /usr/local/cargo/git
# Done?