diff --git a/Dockerfile b/Dockerfile
index fb0d391c2df64cab2f36c5391970fd6684ecba63..42bd4831f5d238f9521c250a45d5e5e601b8fdc2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,6 +2,7 @@ FROM bitnami/phpbb:3.3.8
 MAINTAINER Andrej Ramašeuski <andrej.ramaseuski@pirati.cz>
 
 RUN set -ex; \
+        mkdir -p /var/lib/apt/lists/partial /var/lib/apt/lists/auxfiles /var/lib/apt/mirrors/partial  /var/lib/apt/mirrors/periodic &&
         apt-get update && \
         DEBIAN_FRONTEND=noninteractive \
         apt-get install --no-install-recommends -y \