|
|
@@ -7,10 +7,10 @@ WORKDIR /app
|
|
|
COPY package*.json ./
|
|
|
RUN npm install
|
|
|
|
|
|
-# Copier le projet complet (backend + angular-client)
|
|
|
+# Copier tout le projet
|
|
|
COPY . .
|
|
|
|
|
|
-# Build Angular SSR dans angular-client
|
|
|
+# Installer les dépendances frontend et builder SSR
|
|
|
WORKDIR /app/angular-client
|
|
|
RUN npm install
|
|
|
RUN npm run build:ssr
|
|
|
@@ -22,11 +22,12 @@ WORKDIR /app
|
|
|
ENV NODE_ENV=production
|
|
|
ENV PORT=4000
|
|
|
|
|
|
-# Copier le serveur Express
|
|
|
-COPY --from=builder /app/index.js ./index.js
|
|
|
-COPY --from=builder /app/package*.json ./
|
|
|
-COPY --from=builder /app/routes ./routes
|
|
|
-COPY --from=builder /app/lib ./lib
|
|
|
+# Copier les fichiers du serveur Express
|
|
|
+COPY --from=builder /app/express-server/index.js ./index.js
|
|
|
+COPY --from=builder /app/express-server/package*.json ./
|
|
|
+COPY --from=builder /app/express-server/routes ./routes
|
|
|
+COPY --from=builder /app/express-server/lib ./lib
|
|
|
+COPY --from=builder /app/express-server/logging.js ./logging.js
|
|
|
|
|
|
# Copier la build Angular SSR
|
|
|
COPY --from=builder /app/angular-client/dist ./dist
|