Skip to content

Commit

Permalink
add extra step to add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube committed Feb 26, 2025
1 parent d249e14 commit 9bdcca0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ RUN apt-get update -qq && apt-get install --no-install-recommends -y \
# tx client
RUN curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash

RUN useradd ${DEPLOYUSER} -s /bin/bash -m

RUN useradd -m -s /bin/bash $DEPLOYUSER && \
mkdir -p /opt/bin /app && \
chown -R $DEPLOYUSER:$DEPLOYUSER /opt/bin /app

USER $DEPLOYUSER

COPY --chown=${DEPLOYUSER}:${DEPLOYUSER} production/bin /opt/bin
Expand Down

0 comments on commit 9bdcca0

Please sign in to comment.