https://pulumi.com logo
Title
c

colossal-australia-65039

05/21/2021, 10:13 PM
I'm using
@pulumi/docker
to build an image and i always get this warning. Why is it a warning?
warning: #1 [internal] load build definition from Dockerfile
f

faint-whale-59078

05/22/2021, 4:54 AM
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

colossal-australia-65039

05/24/2021, 5:52 PM
This is happening on any image I build with Pulumi, but here is one example of some of my 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
FROM node:16-alpine

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

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