diff --git a/Dockerfile b/Dockerfile
index 74f9983ea4b3fbcfa2ed3bf3e92bdce435df3551..fb0d391c2df64cab2f36c5391970fd6684ecba63 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,12 @@
 FROM bitnami/phpbb:3.3.8
 MAINTAINER Andrej Ramašeuski <andrej.ramaseuski@pirati.cz>
-RUN install_packages cron
+
+RUN set -ex; \
+        apt-get update && \
+        DEBIAN_FRONTEND=noninteractive \
+        apt-get install --no-install-recommends -y \
+        \
+        cron
 
 COPY crontab /etc/cron.d/
 COPY phpbb /opt/bitnami/phpbb