Skip to content

Commit

Permalink
fix docker for TS migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Dereje1 committed Feb 2, 2023
1 parent 54c98d4 commit bfe4d52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ WORKDIR /tmp
COPY . .
#Install packages and build client
RUN npm install
RUN npm run build
RUN npm run build_client
RUN npm run build_server
#Expose default port and run
EXPOSE 3000
CMD [ "npm", "start" ]
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ services:
ports:
- 8080:3000
environment:
- MONGOLAB_URI=mongodb://root:123456@mongodb:27017/
- MONGOLAB_URI=mongodb://root:123456@mongodb:27017/
- NODE_ENV=production

0 comments on commit bfe4d52

Please sign in to comment.