OPS-268: Adds default logger permissions (#37)

This commit is contained in:
Aleksey Kashapov 2023-07-13 15:28:35 +03:00 committed by GitHub
parent defe3f23ac
commit 18bba50a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ RUN echo "#!/bin/sh" >> /entrypoint.sh && \
# Setup user # Setup user
RUN groupadd --gid ${USER_GID} ${SERVICE_NAME} && \ 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} useradd --uid ${USER_UID} --gid ${USER_GID} -M ${SERVICE_NAME}
USER ${SERVICE_NAME} USER ${SERVICE_NAME}