Initial commit - Facturation SANTINOVA
This commit is contained in:
16
Dockerfile.migrate
Normal file
16
Dockerfile.migrate
Normal file
@@ -0,0 +1,16 @@
|
||||
# Dockerfile for database migration and seeding
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app/backend
|
||||
|
||||
# Copy package files
|
||||
COPY backend/package.json backend/pnpm-lock.yaml* backend/yarn.lock* backend/package-lock.json* ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install --legacy-peer-deps
|
||||
|
||||
# Copy source code
|
||||
COPY backend/ ./
|
||||
|
||||
# Run migration then seed
|
||||
CMD ["sh", "-c", "npx tsx src/db/migrate.ts && npx tsx src/db/seed.ts"]
|
||||
Reference in New Issue
Block a user