- Add @project-e/db package with Drizzle schema and migrations - Replace PocketBase client with PostgreSQL-based database client - Migrate auth from custom to NextAuth.js - Add Docker Compose with PostgreSQL container - Update worker to use new database client - Remove PocketBase-specific files and migrations - Add drizzle config and initial migration
19 lines
422 B
Docker
19 lines
422 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
COPY worker/package.json worker/package.json
|
|
COPY packages/shared/package.json packages/shared/package.json
|
|
COPY packages/db/package.json packages/db/package.json
|
|
|
|
RUN npm ci --omit=dev
|
|
|
|
COPY worker/ ./worker/
|
|
COPY packages/shared/ ./packages/shared/
|
|
COPY packages/db/ ./packages/db/
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
CMD ["npx", "tsx", "worker/index.ts"]
|