From c17cfe25779d0c957f5e5d690b5834b40cd6ebf6 Mon Sep 17 00:00:00 2001 From: fumimowdan Date: Thu, 19 Oct 2023 11:52:18 +0100 Subject: [PATCH] Update Dockerfile we dont node and any node_modules after assets:precompile --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 782e2c27..6459bf48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,6 @@ RUN apk add --update --no-cache --virtual build-dependances \ apk del build-dependances COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile && \ - yarn cache clean COPY . . @@ -36,6 +34,7 @@ ARG GOVUK_NOTIFY_GENERIC_EMAIL_TEMPLATE_ID ENV GOVUK_NOTIFY_GENERIC_EMAIL_TEMPLATE_ID=$GOVUK_NOTIFY_GENERIC_EMAIL_TEMPLATE_ID RUN bundle exec rake assets:precompile && \ - rm -rf tmp + rm -rf node_modules tmp && \ + apk del yarn nodejs CMD ./bin/app-startup.sh \ No newline at end of file