Skip to content

Commit

Permalink
Merge pull request #22 from yesbhautik/main
Browse files Browse the repository at this point in the history
Updated docker standards, included PrismaClient in chat.ts
  • Loading branch information
nizarfadlan authored Feb 11, 2025
2 parents 22cdfea + b9ce82a commit c73ad2d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
35 changes: 18 additions & 17 deletions docker/Dockerfile.dev → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM node:20-alpine AS builder

WORKDIR /app

COPY package*.json .

RUN npm install --quiet

RUN npx prisma migrate

COPY . .

EXPOSE 3000

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


FROM node:20-alpine AS builder

WORKDIR /app

COPY package*.json .

# Install git
RUN apk add --no-cache git

RUN npm install --quiet

RUN npx prisma migrate

COPY . .

EXPOSE 3000

CMD [ "npm", "run", "dev" ]
2 changes: 1 addition & 1 deletion docker-compose.dev.yml → docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
container_name: baileys-api
build:
context: .
dockerfile: ./docker/Dockerfile.dev
dockerfile: ./Dockerfile
volumes:
- '.:/app'
- /app/node_modules
Expand Down
1 change: 1 addition & 0 deletions src/controllers/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { logger, serializePrisma } from "@/utils";
import type { Chat, Message } from "@prisma/client";
import { prisma } from "@/config/database";
import { presenceHandler } from "./misc";
import { PrismaClient} from "@prisma/client";

Check failure on line 6 in src/controllers/chat.ts

View workflow job for this annotation

GitHub Actions / release (18.x)

'PrismaClient' is defined but never used

export const list: RequestHandler = async (req, res) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"noEmitOnError": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": false,
"strict": true,
"skipLibCheck": true,
"strictNullChecks": false,
"incremental": true,
Expand Down

0 comments on commit c73ad2d

Please sign in to comment.