Skip to content

Commit

Permalink
OPS-268: Adds default logger permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
nanodirijabl committed Jul 12, 2023
1 parent 9c829ed commit 536f5ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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}

Expand Down

0 comments on commit 536f5ab

Please sign in to comment.