diff --git a/changelog.d/4562.misc b/changelog.d/4562.misc
new file mode 100644
index 0000000000000000000000000000000000000000..f7185fa7682469334847fcc437e45d199a96de89
--- /dev/null
+++ b/changelog.d/4562.misc
@@ -0,0 +1 @@
+Docker: only copy what we need to the build image
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4b739e7d02a71281b035dd6809c6891dd2197160..d2123348444a33156dd2a69ca7561e601eca19b8 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -31,7 +31,10 @@ RUN pip install --prefix="/install" --no-warn-script-location \
 
 # now install synapse and all of the python deps to /install.
 
-COPY . /synapse
+COPY synapse /synapse/synapse/
+COPY scripts /synapse/scripts/
+COPY MANIFEST.in README.rst setup.py synctl /synapse/
+
 RUN pip install --prefix="/install" --no-warn-script-location \
         /synapse[all]