Skip to content

Commit

Permalink
Introduce a start script and use it in the arm docker files(chatapi)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Jul 14, 2023
1 parent 2ef5987 commit 1fafc96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions chatapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A proxy service to make API calls to GPT and other LLMs",
"main": "index.ts",
"scripts": {
"start": "ts-node src/index.ts",
"dev": "nodemon --exec ts-node src/index.ts",
"lint": "eslint . --ext .ts",
"lint-fix": "eslint . --ext .ts --fix"
Expand Down
2 changes: 1 addition & 1 deletion docker/chatapi/arm-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN npm install
COPY ./chatapi/src ./src/
COPY ./chatapi/tsconfig.json ./tsconfig.json

CMD ["npm", "run", "dev"]
CMD ["npm", "run", "start"]
2 changes: 1 addition & 1 deletion docker/chatapi/arm64-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ RUN npm install
COPY ./chatapi/src ./src/
COPY ./chatapi/tsconfig.json ./tsconfig.json

CMD ["npm", "run", "dev"]
CMD ["npm", "run", "start"]

0 comments on commit 1fafc96

Please sign in to comment.