Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have you figured it out?


I've been playing with it for the past hour this morning. It looks like it does everything I want it to do and more.


It all "just works". No "depends_on", you just specify your "FROM" as usual and it just figures it all out for you.


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.


Kind 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-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: