You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, is there a way to use docker multi-stage build as the lambda target?
if so, how to do that since i can not see the --target is exposed / available as the build arguments.
Additionally, you can define arguments that will be passed to the docker build command via the following properties:
buildArgs: With the buildArgs property, you can define arguments that will be passed to docker build command with --build-arg flag. They might be later referenced via ARG within your Dockerfile. (See [Documentation](https://docs.docker.com/engine/reference/builder/#arg))
cacheFrom: The cacheFrom property can be used to specify which images to use as a source for layer caching in the docker build command with --cache-from flag. (See [Documentation](https://docs.docker.com/engine/reference/builder/#usage))
platform: The platform property can be used to specify the architecture target in the docker build command with the --platform flag. If not specified, Docker will build for your computer's architecture by default. AWS Lambda typically uses x86 architecture unless otherwise specified in the Lambda's runtime settings. In order to avoid runtime errors when building on an ARM-based machine (e.g. Apple M1 Mac), linux/amd64 must be used here. The options for this flag are linux/amd64 (x86-based Lambdas), linux/arm64 (arm-based Lambdas), or windows/amd64. (See [Documentation](https://docs.docker.com/engine/reference/builder/#from))
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, is there a way to use docker multi-stage build as the lambda target?
if so, how to do that since i can not see the
--target
is exposed / available as the build arguments.Beta Was this translation helpful? Give feedback.
All reactions