Skip to content

Commit

Permalink
use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 10, 2023
1 parent 4367048 commit 4fc302d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
20 changes: 5 additions & 15 deletions .docker-files/node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@ set -x
curl -fsSL https://deb.nodesource.com/setup_19.x | bash -
apt-get install -y nodejs

# curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\
# apt-get install -y nodejs
#curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
#echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

# apt-get install -y nodejs #to install Node.js 18.x and npm

#17 10.80 ## You may also need development tools to build native addons:
#apt-get install gcc g++ make
#17 10.80 ## To install the Yarn package manager, run:
#curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
#echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
#apt-get update && apt-get install yarn
#apt update
#apt -y install yarn

#npm install --global yarn

#corepack enable
#echo yarn -v

# yarn install
npm install -g yarn
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ WORKDIR /usr/src/app
# Copy app source into container
COPY --chown=docker:docker . /usr/src/app/

# RUN yarn --version
RUN yarn --version

RUN npm install
RUN yarn install

# Precompile assets - production only
# Clean up temp files and Yarn cache folder
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN mkdir -p /app
WORKDIR /tmp
COPY Gemfile Gemfile.lock /tmp/
RUN bundle install -j ${BUNDLE_JOBS} --retry ${BUNDLE_RETRY}
RUN npm install
RUN yarn install


WORKDIR /app

0 comments on commit 4fc302d

Please sign in to comment.