This paper presents RAILGUN, the first centralized learning-based policy for the multi-agent pathfinding (MAPF) problem. Unlike existing distributed learning-based methods, RAILGUN utilizes a CNN-based architecture to design a supervised policy, enabling generalization across a wide range of map sizes and agent counts. The model is trained using supervised learning using trajectory data collected from rule-based methods. Extensive experimental results demonstrate that RAILGUN outperforms existing methods and achieves excellent zero-shot generalization performance.