-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93dbcbf
commit 8ba02e3
Showing
4 changed files
with
336 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 . . | ||
|
||
|
Oops, something went wrong.