Skip to content

Commit

Permalink
create home directory for appuser
Browse files Browse the repository at this point in the history
  • Loading branch information
pwatson committed Aug 18, 2023
1 parent e4a17cd commit 5102425
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 @@ -12,6 +12,8 @@ RUN apk add --update 'mariadb-client>10.3.15' mariadb-connector-c bash python3 p
# set us up to run as non-root user
RUN groupadd -g 1005 appuser && \
useradd -r -u 1005 -g appuser appuser
# add home directory for user so IRSA AWS auth works
RUN mkdir -p /home/appuser && chmod 0755 /home/appuser && chown appuser /home/appuser
# ensure smb stuff works correctly
RUN mkdir -p /var/cache/samba && chmod 0755 /var/cache/samba && chown appuser /var/cache/samba && chown appuser /var/lib/samba/private
USER appuser
Expand Down

0 comments on commit 5102425

Please sign in to comment.