# 2022-12-07 FROM --platform=linux/amd64 varnish:latest ARG TARGETPLATFORM ARG TARGETOS ARG TARGETARCH ARG BUILDPLATFORM ARG BUILDOS ARG BUILDARCH ARG BUILDVARIANT CMD ["bash"] ENV LANG C.UTF-8 LABEL author "Olivier Le Bris" LABEL maintainer "zogg" LABEL com.centurylinklabs.watchtower.enable=false LABEL org.opencontainers.image.source "https://zogg.fr" LABEL org.opencontainers.image.licenses MIT # set the user to root, and install build dependencies USER root RUN set -e && \ \ apt-get update && \ apt-get -y install $VMOD_DEPS /pkgs/*.deb && \ \ # install one, possibly multiple vmods install-vmod https://github.com/varnish/varnish-modules/releases/download/0.21.0/varnish-modules-0.21.0.tar.gz && \ \ # clean up and set the user back to varnish apt-get -y purge --auto-remove $VMOD_DEPS varnish-dev && \ rm -rf /var/lib/apt/lists/* USER varnish