Initial commit.

This commit is contained in:
Olivier 'reivilibre' 2021-01-03 14:51:38 +00:00
commit 6ee0366715

12
Dockerfile Normal file
View File

@ -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?