diff --git a/containers/builder/Dockerfile b/containers/builder/Dockerfile
index bb0d7f0ed9894681299f43d90b95daf7d5b643fb..b36f3d2fd6778f66bea17e91e6e4f4ee6d61ec42 100644
--- a/containers/builder/Dockerfile
+++ b/containers/builder/Dockerfile
@@ -41,7 +41,7 @@ RUN cd /opt/spack-environment && spack env activate . \
  && pip install --trusted-host pypi.org \
                 --trusted-host files.pythonhosted.org \
                 --no-cache-dir \
-        ipython matplotlib scipy
+        ipython matplotlib scipy yapf
 
 ## Build elements prone to change here, to allow us to rebuild
 ## from runner cache efficiently
diff --git a/containers/builder/spack.yaml b/containers/builder/spack.yaml
index b14cd597ad8646ebfb8b77ecd0a54f8cd116eb86..579065a5466a86e4fc472e2e941db7990ad2a9fc 100644
--- a/containers/builder/spack.yaml
+++ b/containers/builder/spack.yaml
@@ -11,7 +11,6 @@ spack:
     - py-pip
     - py-numpy
     - py-pyyaml
-    - py-yapf
     - xrootd@4.12.3 cxxstd=17 +python
     - root@6.22.00 cxxstd=17 +dataframe +fftw +fortran +gdml +http +mlp +pythia8 +root7 +tmva +vc +xrootd +ssl ^mesa+opengl -llvm -osmesa
     - pythia8@8244