diff --git a/docker/Dockerfile b/docker/Dockerfile
index 56e96f2b81c7f952681306a09c5a47b70cc4bbeb..9fc9409ce0d4f790740f5c356c405191ab7e24fc 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -15,7 +15,7 @@ RUN pip install httpx sphinx sphinx_rtd_theme vale ansible
 RUN ./build-docs.sh
 
 # Generate sample configuration file, and remove an existing one if present
-RUN rm config.json >/dev/null 2>&1
+RUN rm -f config.json >/dev/null 2>&1
 RUN ln -s config.json.example config.json
 
 # ENTRYPOINT ["sleep", "inf"]