8d742518f8
- Client management (CRUD with JSONB custom fields) - Pet profiles - Service catalog with per-client pricing - Booking calendar with recurring appointments - Invoicing with Stripe integration - Real-time messaging (WebSocket) - Self-booking portal - Staff assignment - Docker multi-stage builds - Prisma schema + seed
24 lines
466 B
Docker
24 lines
466 B
Docker
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock* ./
|
|
RUN yarn install --frozen-lockfile 2>/dev/null || npm install
|
|
|
|
COPY . .
|
|
RUN npx prisma generate
|
|
RUN npm run build
|
|
|
|
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock* ./
|
|
RUN yarn install --production --frozen-lockfile 2>/dev/null || npm install --production
|
|
|
|
COPY --from=builder /app/prisma ./prisma
|
|
COPY --from=builder /app/dist ./dist
|
|
|
|
EXPOSE 3000
|
|
CMD ["node", "dist/main"]
|