high-hamburger-69207
03/11/2023, 12:26 PMimport * as awsx from "@pulumi/awsx";
• I am trying to build and push a dockerimage to ecr.
Pulumi code
const image = new awsx.ecr.Image("image", {
repositoryUrl: repository.url,
path: "./nodeapp/",
});
• The ./nodeapp
is in same root directory, and the dockerfile looks likes this:
FROM node:16
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "node", "index.js" ]
Error: Unhandled exception: Error: failed to register new resource image [awsx:ecr:Image]: 2 UNKNOWN: No 'docker' command available on PATH: Please install to use container 'build' mode.steep-toddler-94095
03/11/2023, 5:54 PM