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 93dbcbf commit 8ba02e3
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 330 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
Binary file modified .yarn/install-state.gz
Binary file not shown.
20 changes: 11 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,28 @@ RUN case "$(dpkg --print-architecture)" in \
*) echo "Unsupported architecture"; exit 1 ;; \
esac \
&& curl -fsSL https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${ARCH}.tar.xz | tar -xJ -C /usr/local --strip-components=1 \
&& npm install -g yarn@$YARN_VERSION
&& corepack enable \
&& corepack prepare [email protected] --activate

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

FROM nodejs AS build

# Copy package files first
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/releases/ ./.yarn/releases/

# Now run yarn install
RUN yarn install --immutable

# Install application gems
COPY Gemfile Gemfile.lock ./
RUN bundle config set --local build.nokogiri --use-system-libraries && \
bundle config build.msgpack --with-cflags="-O2" && \
bundle install --jobs 4 --retry 5 && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git

# Install node modules
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
COPY . .

Expand Down
Loading

0 comments on commit 8ba02e3

Please sign in to comment.