From 9bdcca089c219b5e0c035a574742d76169630240 Mon Sep 17 00:00:00 2001 From: chinelo-obitube Date: Wed, 26 Feb 2025 17:43:29 +0000 Subject: [PATCH] add extra step to add permissions --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1837f0b3c..cb7b91b69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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