Docker build for background agents with git lfs

My setup uses a devcontainer Dockerfile. I intend to use this same docker definition to setup the environment for cursor background agents.

This docker copies files into the container as part of building (pretty common practice). In our case, these files are large, so they are in git-lfs.

Thus, the docker build process needs a git lfs pull before building. That doesn’t seem to be happening by default.

Can I achieve that with some configuration in the environment.json?

Hi @mllofriu did you figure out how to do this? I have a similar issue where the agent needs files from LFS