diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f93ae27de32f149fcf9639303cc53f9083fc4cbc..cab46862bc04777e2042f924806330603c93bbe8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@ image: docker:stable
 
 variables:
   DOCKER_TLS_CERTDIR: "/certs"
-  IMAGE_VER: 4.2.2-passenger-14
+  IMAGE_VER: 4.2.2-passenger-1
 
 services:
   - docker:dind
diff --git a/Dockerfile b/Dockerfile
index 46645093ce86bf86050803ee93e0f5b39825a7fd..8eb47478cd24a6dc7d5c13296ddc60be50d43f11 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-get remove libgs9 ghostscript libgs9-common
+    apt remove libgs9 ghostscript libgs9-common
 
 COPY ./themes/ /usr/src/redmine/public/themes/
 COPY ./plugins/ /usr/src/redmine/plugins/