Skip to content

Commit 8ba02e3

Browse files
committed
yarn upgrade
1 parent 93dbcbf commit 8ba02e3

File tree

4 files changed

+336
-330
lines changed

4 files changed

+336
-330
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{js,json,yml}]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2

.yarn/install-state.gz

-1.58 KB
Binary file not shown.

Dockerfile

+11-9
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,28 @@ RUN case "$(dpkg --print-architecture)" in \
3333
*) echo "Unsupported architecture"; exit 1 ;; \
3434
esac \
3535
&& 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 \
36-
&& npm install -g yarn@$YARN_VERSION
36+
&& corepack enable \
37+
&& corepack prepare [email protected] --activate
3738

38-
# Verify Node.js and Yarn installation
39-
RUN yarn install --immutable
39+
# Verify Yarn installation
40+
RUN yarn --version
4041

4142
FROM nodejs AS build
4243

44+
# Copy package files first
45+
COPY package.json yarn.lock .yarnrc.yml ./
46+
COPY .yarn/releases/ ./.yarn/releases/
47+
48+
# Now run yarn install
49+
RUN yarn install --immutable
50+
4351
# Install application gems
4452
COPY Gemfile Gemfile.lock ./
4553
RUN bundle config set --local build.nokogiri --use-system-libraries && \
4654
bundle config build.msgpack --with-cflags="-O2" && \
4755
bundle install --jobs 4 --retry 5 && \
4856
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git
4957

50-
# Install node modules
51-
COPY .yarn/releases /.yarn/releases
52-
COPY .yarn/plugins /.yarn/plugins
53-
COPY package.json yarn.lock .yarnrc.yml ./
54-
RUN yarn install --frozen-lockfile
55-
5658
# Copy application code
5759
COPY . .
5860

0 commit comments

Comments
 (0)