fix docker

This commit is contained in:
hex (asiago) 2024-06-03 09:55:31 +02:00
parent 7796ce2d37
commit 356b3e3beb

View file

@ -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