# "Model as an OCI image": the weights ride through the SAME registry as every
# other container, so one transfer path, one scanner, one signature, one audit.
ARG MODEL_BASE=docker.io/library/busybox:1.38.0-musl
FROM ${MODEL_BASE}
ARG MODEL_FILE
# WORKDIR creates /models with normal 0755 permissions first. Without it, COPY
# would create the folder itself and --chmod=0444 would lock the folder too.
WORKDIR /models
# --chmod sets read-only permissions in the SAME layer. (A separate `RUN chmod`
# would copy the whole multi-hundred-MB file into a second layer.)
COPY --chmod=0444 ${MODEL_FILE} ./${MODEL_FILE}
USER 65534
