purple-megabyte-83002
06/07/2022, 10:18 PM// Step 3: Build and publish a Docker image to a private ECR registry.
const ApiImage = awsx.ecs.Image.fromDockerBuild('api-image', {
context: path.resolve(__dirname, '../../../../'),
dockerfile: path.resolve(__dirname, '../../', 'Dockerfile'),
});
Is there a way to make it build a new docker image only if the content of the context has changed ? like storing a SHA256 hash of the folder contents and checking against it to decide to build or reuse last one ?little-cartoon-10569
06/08/2022, 12:26 AM