commit 6ee03667159cb7230a133ce7e07308a889cfe960 Author: Olivier Date: Sun Jan 3 14:51:38 2021 +0000 Initial commit. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ef37e83 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM rust:1.49.0-slim + +# install needed APT packages, then clear out the cache to reduce image size bloat +RUN apt install apt-get -qq update && \ + apt-get -yqq install pkg-config nodejs npm git && \ + 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 fce3e4b8a0d04067e4ffc063572872e912dec5dd && \ + rm -r /usr/local/cargo/{registry,git,.package-cache} + +# Done?