diff --git a/packages/node/Dockerfile b/packages/node/Dockerfile index 8f20e0b08a..ce2f48302d 100644 --- a/packages/node/Dockerfile +++ b/packages/node/Dockerfile @@ -21,10 +21,11 @@ ENV TZ utc RUN apk add --no-cache tini git curl tar COPY --from=builder /app/packages/node/app.tgz /app.tgz +COPY --from=builder /app/.yarn/cache . RUN tar -xzvf /app.tgz --strip 1 && rm /app.tgz -RUN yarn install --production --non-interactive --pure-lockfile --prefer-offline - +RUN YARN_CACHE_FOLDER=/.yarn/cache yarn install --production --non-interactive --pure-lockfile --prefer-offline +RUN yarn cache clean ENTRYPOINT ["/sbin/tini", "--", "bin/run"] CMD ["-f","/app"] \ No newline at end of file