From 632573d9fe4aaf7ea0611f6083ddf1b10ca60391 Mon Sep 17 00:00:00 2001 From: Aleksey Kashapov Date: Thu, 13 Jul 2023 15:30:13 +0300 Subject: [PATCH] OPS-268: Adds default logger permissions (#32) --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 64717a7..4f386cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,8 @@ RUN echo "#!/bin/sh" >> /entrypoint.sh && \ # Setup user RUN groupadd --gid ${USER_GID} ${SERVICE_NAME} && \ + mkdir /var/log/${SERVICE_NAME} && \ + chown ${USER_UID}:${USER_GID} /var/log/${SERVICE_NAME} && \ useradd --uid ${USER_UID} --gid ${USER_GID} -M ${SERVICE_NAME} USER ${SERVICE_NAME}