From 356b3e3beb2fc4894150226c19627e1860eb743b Mon Sep 17 00:00:00 2001 From: "hex (asiago)" Date: Mon, 3 Jun 2024 09:55:31 +0200 Subject: [PATCH] fix docker --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c751d0c..a288769 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,11 +48,11 @@ RUN chown -R disseminate:disseminate /app # Installing bash, mostly for debugging. RUN apk add bash -# Switching to non-root user. -USER disseminate - # Copying the compiled project into our main image, ownership of the build is set to our aforementioned (non-root) user. COPY --chown=$UID:$GID --from=compiled /tmp/build/ /app +RUN chown -R $UID:$GID /app +# Switching to user. +USER disseminate # Installing the dependencies. RUN yarn install --production