diff --git a/Dockerfile b/Dockerfile
index 30d066340952ad744b0bfe5b89f82f3b9815e6a1..cf8f6feb53ae80823a3093b3ec85cc675f9e2ab8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,7 @@ RUN apt-get update && apt-get upgrade -y && \
 RUN curl -sSL https://install.python-poetry.org | python -
 
 COPY . /opt/StorageLeaf
-RUN rm /opt/StorageLeaf/settings.json
+RUN rm -f /opt/StorageLeaf/settings.json
 
 WORKDIR /opt/StorageLeaf
 RUN /root/.local/bin/poetry install --no-root && \