From 5aee0f763cc24c027ae1f29de2de6bf1ee242b31 Mon Sep 17 00:00:00 2001 From: Aleksey Kashapov Date: Thu, 13 Jul 2023 15:29:17 +0300 Subject: [PATCH] OPS-268: Adds default logger permissions (#25) --- 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}