From 5e7d87615c3852dacd50a3e4942e0193377ab2f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Tue, 25 Oct 2022 21:16:01 +0200
Subject: [PATCH] Install cron by bitnami manual

---
 Dockerfile | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 9e40ad1..d285ff2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,14 +1,10 @@
 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 \
-        \
-        cron
-
+USER 0
+RUN install_packages cron
 COPY crontab /etc/cron.d/
+USER 1001
+
 COPY phpbb /opt/bitnami/phpbb
 CMD [  ( cron -f -l 8 & ) & "/opt/bitnami/scripts/apache/run.sh" ]
-- 
GitLab