User dockerized dslim/slim

Change-Id: I9724054a69ac5149c2e05f4e95f164a482ed158a
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d67231c..213d48c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -53,17 +53,12 @@
     - mkdir -p cache
     - apk update
     - apk add --no-cache git
-    - >
-      apk add -u curl
-      && curl -L -o ds.tar.gz https://downloads.dockerslim.com/releases/1.40.6/dist_linux.tar.gz
-      && tar -xvf ds.tar.gz
-      && mv dist_linux/* /usr/local/bin/
   script:
     - docker build -f Dockerfile -t korap/corpuscomposition:$VID .
-    - docker run -d --rm --name corpuscomposition korap/corpuscomposition:$VID
+    - docker run -d --name corpuscomposition korap/corpuscomposition:$VID
     - docker cp corpuscomposition:/cache ./
     - docker kill corpuscomposition
-    - slim build --sensor-ipc-mode proxy --http-probe-off --include-path /usr/local --include-path /cache korap/corpuscomposition
+    - docker run --rm -v /var/run/docker.sock:/var/run/docker.sock dslim/slim build --include-path /usr/local --include-path /cache korap/corpuscomposition
     - docker save korap/corpuscomposition.slim | xz -T0 > corpuscomposition-$VID.xz
   artifacts:
     paths: