Skip to content

Commit

Permalink
yarn upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitytakei committed Dec 4, 2024
1 parent 8e05508 commit 93dbcbf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FROM base AS nodejs

# Install Node.js and Yarn
ARG NODE_VERSION=22.3.0
ARG YARN_VERSION=1.22.19
ARG YARN_VERSION=4.5.3
ENV PATH=/usr/local/node/bin:/usr/local/bin:$PATH

RUN case "$(dpkg --print-architecture)" in \
Expand All @@ -36,7 +36,7 @@ RUN case "$(dpkg --print-architecture)" in \
&& npm install -g yarn@$YARN_VERSION

# Verify Node.js and Yarn installation
RUN node --version && yarn --version
RUN yarn install --immutable

FROM nodejs AS build

Expand All @@ -48,7 +48,9 @@ RUN bundle config set --local build.nokogiri --use-system-libraries && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git

# Install node modules
COPY package.json yarn.lock ./
COPY .yarn/releases /.yarn/releases
COPY .yarn/plugins /.yarn/plugins
COPY package.json yarn.lock .yarnrc.yml ./
RUN yarn install --frozen-lockfile

# Copy application code
Expand Down

0 comments on commit 93dbcbf

Please sign in to comment.