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