I'm using `@pulumi/docker` to build an image and i...
# general
c
I'm using
@pulumi/docker
to build an image and i always get this warning. Why is it a warning?
Copy code
warning: #1 [internal] load build definition from Dockerfile
f
Hi @colossal-australia-65039 do you have some code you could share please ?
I found some refs on this and I'll ping my colleagues to check it's ok.
c
This is happening on any image I build with Pulumi, but here is one example of some of my code
Copy code
const repo = new Repository("logfiles", {
  name: `repo/name`,
})

const gitCommitSha = execSync("git rev-parse HEAD").toString().trim()

export const image = new docker.Image("image", {
  imageName: interpolate`${repo.repositoryUrl}:${gitCommitSha}`,
  build: {
    context: `../`,
    dockerfile: `../Dockerfile`,
  },
})
the Dockerfile is pretty simple
Copy code
FROM node:16-alpine

WORKDIR /code
COPY package.json package-lock.json ./
RUN npm install
COPY . .

ENTRYPOINT ["npm", "run", "start"]
package.json versions
Copy code
"@pulumi/docker": "^3.0.0",
        "@pulumi/pulumi": "^3.0.0",
pulumi version
Copy code
v3.3.0