3 ms·
Hm, that’s interesting. Are you saying just specifying the FROM in the Dockerfile is enough? I’ve seen a trick floating around specifying from in the bake confi
by moltar 2y ago
Hm, that’s interesting. Are you saying just specifying the FROM in the Dockerfile is enough? I’ve seen a trick floating around specifying from in the bake config in addition to Dockerfile.
- miiiiiike 2y agoKind of, you use contexts. You can create contexts that point to other targets. So in your Dockerfile you can use `FROM project-base` where `project-base` is whatever you specified in the context. See "Pinning an Alpine image" here: https://docs.docker.com/build/bake/contexts/#pinning-alpine-image https://docs.docker.com/build/bake/contexts/#pinning-alpine-...