diff --git a/Dockerfile b/Dockerfile
index 20047101ab6137f8d3418549246f08ac09b0b560..7aa55dc7157c7dc10c0453535c2e748dc71fa7e1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -88,10 +88,8 @@ RUN apt-get update && apt-get --assume-yes install \
         python3-shapely \
         python3-six \
         swig3.0 \
-        texlive-binaries
+        texlive-binaries \
+        && rm -rf /var/lib/apt/lists/*
 
 # git-lfs post-install
 RUN git lfs install
-
-# clear package cache
-RUN rm -rf /var/lib/apt/lists/*
\ No newline at end of file