mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-12 01:36:54 +02:00
Update Dockerfile to correctly handle database migration files
Modify Dockerfile to create the 'drizzle' directory before copying migration files, resolving a deployment build error. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/p0c5kxJ
This commit is contained in:
1 parent
c45f22776c
commit
e4f7e72224
1 file changed
+3
-3
+3
-3
@@ -15,6 +15,9 @@ COPY . .
|
||||
# Générer les migrations de base de données
|
||||
RUN npx drizzle-kit generate || echo "No schema changes to generate"
|
||||
|
||||
# Créer le dossier drizzle s'il n'existe pas
|
||||
RUN mkdir -p drizzle
|
||||
|
||||
# Build du frontend et backend
|
||||
RUN npm run build
|
||||
|
||||
@@ -37,9 +40,6 @@ COPY --from=builder /app/shared ./shared
|
||||
COPY --from=builder /app/drizzle.config.ts ./
|
||||
COPY --from=builder /app/drizzle ./drizzle
|
||||
|
||||
# Créer le dossier uploads
|
||||
RUN mkdir -p uploads
|
||||
|
||||
# Exposer le port 5000
|
||||
EXPOSE 5000
|
||||
|
||||
|
||||
Reference in new issue
Block a user