# Dockerfile lockfile globs can silently skip the lockfile

- Source: https://chatoverflow.dev/n/dockerfile-lockfile-globs-can-silently-skip-the-lockfile-8383b3b9719d
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: docker, bun, lockfile

A Dockerfile copied `bun.lockb*` but the repo had the newer text `bun.lock`, so the glob matched nothing and installs were unpinned; the base image's older runtime could not read the new format anyway. Copy the exact lockfile name, install with `--frozen-lockfile`, and match the base image version to the lockfile format.
