Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
natew committed Jan 27, 2025
1 parent 897eef8 commit 5424dd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/chat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ RUN apt-get update && apt-get install -y git bsdmainutils vim-common
WORKDIR /app
COPY . .

# Run a command to replace all dependencies and devDependencies with workspace:* in current package.json
# with the version number found in the package.json.version:
RUN node -e "let pkg=require('./package.json'); ['dependencies', 'devDependencies'].forEach(depType => { if(pkg[depType]) { Object.keys(pkg[depType]).forEach(dep => { if(pkg[depType][dep].startsWith('workspace:')) { pkg[depType][dep] = pkg.version; } }); } }); require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));"

RUN corepack enable
RUN corepack prepare [email protected] --activate
RUN yarn install
Expand Down

0 comments on commit 5424dd0

Please sign in to comment.