Skip to content

Commit

Permalink
fix: docker npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Aug 16, 2024
1 parent d15ba2c commit 337e7eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .deploy/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ RUN npm install pm2 -g
COPY --chown=node:node --from=build /srv/pangolin/dist/packages ./packages
COPY --chown=node:node --from=build /srv/pangolin/dist/apps/api .
COPY --chown=node:node --from=build /srv/pangolin/tsconfig.base.json ./
COPY --chown=node:node --from=build /srv/pangolin/yarn.lock .
COPY --chown=node:node --from=build /srv/pangolin/package-lock.json .
COPY --chown=node:node .deploy/api/package-prod.json ./package.json

RUN yarn config set network-timeout 300000
RUN yarn install --frozen-lockfile && yarn cache clean && \
# RUN yarn config set network-timeout 300000
RUN npm install --legacy-peer-deps && \
touch ormlogs.log && chown -R node:node /srv/pangolin

USER node:node
Expand Down
7 changes: 7 additions & 0 deletions .deploy/api/package-prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,18 @@
},
"private": true,
"dependencies": {
"@langchain/community": "0.2.20",
"@langchain/core": "0.2.18",
"@langchain/langgraph": "0.0.31",
"@langchain/ollama": "^0.0.2",
"@langchain/openai": "0.2.4",
"@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0",
"@nestjs/platform-express": "^8.0.0",
"@swc/helpers": "~0.5.0",
"idb-keyval": "^6.0.2",
"immer": "^10.0.1",
"langchain": "0.2.10",
"money-clip": "^3.0.5",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.0.0",
Expand Down

0 comments on commit 337e7eb

Please sign in to comment.