-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using built images of one module as base image of another #1329
Comments
Hi @zvictor This example demonstrates how to use base images: https://github.com/garden-io/go3dprint/ For example, the
and here's the Dockerfile:
|
Closing this. Feel free to re-open if you have any more questions. |
that's exactly what I was looking for! thank you! regarding the documentation, is there anything we could do to make this feature more prominent ? I couldn't find the go3dprint example inside the |
You're absolutely right. This should just be in our main examples directory (or a simplified version). It's originally for an example we did for a talk. |
according to https://docs.garden.io/guides/configuration-files#build:
I am not sure I got it right. Is it saying that we can use the built image of one module as base image of another? I tried to achieve that but I couldn't figure it out.
Should I just use the module name as
image
name? If so, how to refer to the correcttag
name if the default one,latest
, is not generated by garden?This is what I tried:
Stack Graph
backend/Dockerfile and fronted/Dockerfile
FROM mylib AS base ...
error
Note: I am posting it here instead of a question in stackoverflow because I believe that this issue could lead to an improvement in the docs or examples folder.
The text was updated successfully, but these errors were encountered: