Skip to content

Commit

Permalink
successfully added docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-flick committed Sep 30, 2024
1 parent 1423d5a commit b4f1a03
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
Empty file added docker/Dockerfile.merchant
Empty file.
16 changes: 16 additions & 0 deletions docker/Dockerfile.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:20.12.0-alpine3.19

WORKDIR /user/src/app

COPY package.json package-lock.json turbo.json tsconfig.json ./

COPY apps ./apps
COPY packages ./packages

RUN npm install

RUN npm run db:generate

RUN npm run build

CMD ["npm", "run", "start-user-app"]
Empty file.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"db:generate": "cd packages/db && npx prisma generate && cd ../.."
"db:generate": "cd packages/db && npx prisma generate && cd ../..",
"start-user-app": "cd ./apps/user-app && npm run start"
},
"devDependencies": {
"prettier": "^3.2.5",
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends" : "@repo/typescript-config/base.json"
}

0 comments on commit b4f1a03

Please sign in to comment.