Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
we dont node and any node_modules after assets:precompile
  • Loading branch information
fumimowdan committed Oct 19, 2023
1 parent fa8dd82 commit c17cfe2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .

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

0 comments on commit c17cfe2

Please sign in to comment.