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