mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-12 01:39:47 +02:00
Fix: Rendre les commandes COPY plus explicites dans le Dockerfile
Remplacement des wildcards (*, ?) par des noms de fichiers explicites pour éviter tout problème potentiel avec la résolution des patterns dans Docker COPY. Changements : - COPY package*.json -> COPY package.json package-lock.json - COPY tsconfig*.json -> COPY tsconfig.json tsconfig.app.json tsconfig.node.json - COPY tailwind.config.* -> COPY tailwind.config.js tailwind.config.ts Cela garantit que tous les fichiers nécessaires sont correctement copiés dans le contexte de build Docker.
This commit is contained in:
1 file changed
+6
-6
+6
-6
@@ -7,19 +7,19 @@ WORKDIR /app
|
||||
# Installer les dépendances nécessaires pour compiler les modules natifs
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
# Copier les fichiers de dépendances
|
||||
COPY package*.json ./
|
||||
COPY tsconfig*.json ./
|
||||
# Copier les fichiers de configuration et dépendances
|
||||
COPY package.json package-lock.json ./
|
||||
COPY tsconfig.json tsconfig.app.json tsconfig.node.json ./
|
||||
COPY vite.config.ts ./
|
||||
COPY components.json ./
|
||||
COPY postcss.config.js ./
|
||||
COPY tailwind.config.* ./
|
||||
COPY tailwind.config.js tailwind.config.ts ./
|
||||
COPY eslint.config.js ./
|
||||
|
||||
# Installer TOUTES les dépendances (dev + prod)
|
||||
RUN npm ci
|
||||
|
||||
# Copier le code source
|
||||
# Copier le code source complet
|
||||
COPY index.html ./
|
||||
COPY src ./src
|
||||
COPY public ./public
|
||||
@@ -37,7 +37,7 @@ WORKDIR /app
|
||||
RUN apk add --no-cache sqlite python3 make g++
|
||||
|
||||
# Copier les fichiers de dépendances
|
||||
COPY package*.json ./
|
||||
COPY package.json package-lock.json ./
|
||||
|
||||
# Installer les dépendances backend
|
||||
# Note: On installe toutes les dépendances car package.json contient aussi les deps frontend
|
||||
|
||||
Reference in new issue
Block a user