running docker system prune -a and then building a new image seemed to fix this issue.
docker system prune -a