Skip to content

Commit

Permalink
Update Yarn version in Dockerfile to 1.22.22
Browse files Browse the repository at this point in the history
This commit updates the Yarn version from 1.22.19 to 1.22.22 across the Dockerfile. Ensuring the latest version of Yarn helps maintain compatibility and improves performance and security.
  • Loading branch information
takaishi committed Dec 7, 2024
1 parent 35f8fc4 commit b8aaa5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y shared-mime-info libmariadb3
RUN bundle install

FROM public.ecr.aws/docker/library/ruby:3.3.6 AS asset-compile
ENV YARN_VERSION=1.22.19
ENV YARN_VERSION=1.22.22
COPY --link --from=node /opt/yarn-v$YARN_VERSION /opt/yarn
COPY --link --from=node /usr/local/bin/node /usr/local/bin/
RUN ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
Expand All @@ -37,7 +37,7 @@ RUN --mount=type=cache,uid=1000,target=/app/tmp/cache SECRET_KEY_BASE=hoge RAILS

FROM public.ecr.aws/docker/library/ruby:3.3.6-slim

ENV YARN_VERSION=1.22.19
ENV YARN_VERSION=1.22.22
COPY --link --from=node /opt/yarn-v$YARN_VERSION /opt/yarn
COPY --link --from=node /usr/local/bin/node /usr/local/bin/
RUN ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
Expand Down

0 comments on commit b8aaa5a

Please sign in to comment.