docker build doesn't seem to be working all that g...
# general
d
docker build doesn't seem to be working all that great:
Copy code
const baseImage = new dockerbuild.Image("BaseImage", {
  context: { location: "../../" },
  dockerfile: { location: "../../Dockerfile" },
  tags: [`test:latest`],
  cacheTo: [
    { local: { dest: "../../.build-cache", mode: dockerbuild.CacheMode.Min } },
  ],
  cacheFrom: [{ local: { src: "../../.build-cache" } }],
  push: false,
  noCache: false,
});
1. tags don't name the docker image. it names the image moby/buildkit 2. you can't name the docker build itself. names it my github repo link 3. caching doesn't work completely. it builds up to a certain point:
COPY . .
and then it does the full build afterwards If i run everything through the cli it works though:
docker buildx build . --tag test:latest -f ./Dockerfile --cache-to type=local,dest=.build-cache --cache-from type=local,src=.build-cache --builder clever_morse