From 892699a60f197ac5bddcfe6ce0a60d9e362843c4 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Mon, 2 Dec 2024 14:01:46 +1100 Subject: [PATCH] Run updates in the base image. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 11e5a2a..b60e92f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,11 @@ ENV MARIADB_DATA_DIR=/home/db-data # Add customised entrypoint script. COPY 9999-mariadb-init.bash /lagoon/entrypoints/ -# Create the custom data directory and set permissions. USER root +RUN apk update && apk upgrade --no-cache + +# Create the custom data directory and set permissions. RUN mkdir -p /home/db-data \ && chown -R mysql:mysql /home/db-data \ && /bin/fix-permissions /home/db-data