I am using the caddy/caddy:alpine docker image and installing ‘mailcap’ during docker build. So the file is available from the start of the container.
simplified Dockerfile:
FROM caddy/caddy:alpine
RUN apk --no-cache --update add mailcap
I still wonder why anybody else (using docker) has this problem serving JS files…