diff --git a/Dockerfile b/Dockerfile
index 8eb47478cd24a6dc7d5c13296ddc60be50d43f11..996f3f67bdac84432a5e394ad9a90df169798dd4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@ MAINTAINER Andrej RamaĊĦeuski <andrej.ramaseuski@pirati.cz>
 RUN	apt-get update && \
 	apt-get install -y --no-install-recommends \
     build-essential && \
-    apt remove libgs9 ghostscript libgs9-common
+    apt-get remove -y libgs9 ghostscript libgs9-common
 
 COPY ./themes/ /usr/src/redmine/public/themes/
 COPY ./plugins/ /usr/src/redmine/plugins/