fix docker
This commit is contained in:
parent
7796ce2d37
commit
356b3e3beb
1 changed files with 3 additions and 3 deletions
|
@ -48,11 +48,11 @@ RUN chown -R disseminate:disseminate /app
|
||||||
# Installing bash, mostly for debugging.
|
# Installing bash, mostly for debugging.
|
||||||
RUN apk add bash
|
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.
|
# 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
|
COPY --chown=$UID:$GID --from=compiled /tmp/build/ /app
|
||||||
|
RUN chown -R $UID:$GID /app
|
||||||
|
# Switching to user.
|
||||||
|
USER disseminate
|
||||||
|
|
||||||
# Installing the dependencies.
|
# Installing the dependencies.
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
|
Loading…
Reference in a new issue