diff --git a/Dockerfile b/Dockerfile
index 21e50aacbbbb699a289b9f0d8d0029ea4a6c130e..54aabd355baf1fc0a88b7b006d73c19a1be08ae5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,7 +19,7 @@ RUN apt-get update && apt-get -y install curl dumb-init gcc libffi-dev && \
     pip3 install -r /data/requirements.txt && \
     chmod +x /data/* /usr/bin/entrypoint /usr/bin/gitlab-runner && \
     useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash && \
-    apt-get remove -y gcc curl && apt autoremove && apt-get clean
+    apt-get remove -y gcc curl && apt autoremove -y && apt-get clean
 
 USER gitlab-runner
 WORKDIR /data