mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-23 15:18:17 +02:00
Improve application setup and ensure database migrations run smoothly
Copies node_modules, simplifies entrypoint, and adds fallback for drizzle-kit in Docker. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c6c5feed-35b8-4a24-8fc2-e4d6ed02724b.jpg
This commit is contained in:
1 parent
e9fe06eee8
commit
356baa3338
3 files changed
+50
-8
No files matched your search
+5
-4
@@ -45,14 +45,15 @@ COPY --from=builder --chown=regisflow:nodejs /build/package*.json ./
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/dist ./dist
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/shared ./shared
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/drizzle.config.ts ./
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/node_modules ./node_modules
|
||||
|
||||
# Installer uniquement les dépendances de production
|
||||
RUN npm ci --only=production && \
|
||||
npm cache clean --force && \
|
||||
# Les dépendances sont déjà copiées depuis le builder
|
||||
# Nettoyer le cache npm uniquement
|
||||
RUN npm cache clean --force && \
|
||||
rm -rf /tmp/*
|
||||
|
||||
# Copier les scripts de configuration
|
||||
COPY --chown=regisflow:nodejs docker-entrypoint.sh /usr/local/bin/
|
||||
COPY --chown=regisflow:nodejs docker-entrypoint-simple.sh /usr/local/bin/docker-entrypoint.sh
|
||||
COPY --chown=regisflow:nodejs postgres-prod.conf ./
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
|
||||
Reference in new issue
Block a user