4NK_node/ihm_client/Dockerfile
Nicolas Cantu 4a295c5eb8
Some checks failed
CI - 4NK Node / Code Quality (push) Failing after 32s
CI - 4NK Node / Unit Tests (push) Failing after 35s
CI - 4NK Node / Integration Tests (push) Successful in 27s
CI - 4NK Node / Security Tests (push) Failing after 33s
CI - 4NK Node / Docker Build & Test (push) Failing after 11s
CI - 4NK Node / Documentation Tests (push) Successful in 4s
CI - 4NK Node / Performance Tests (push) Successful in 28s
CI - 4NK Node / Notify (push) Failing after 2s
fix(ihm_client): corrections Dockerfile et service.ts pour build Docker réussi - Correction npm install pour inclure devDependencies - Correction hexToBlob pour éviter ArrayBufferLike/SharedArrayBuffer - Infrastructure 4NK_node maintenant opérationnelle avec ihm_client
2025-08-25 20:00:06 +02:00

54 lines
1.2 KiB
Docker

# Dockerfile optimisé pour l'intégration dans 4NK_node
FROM node:20-alpine AS builder
WORKDIR /app
# Installation des dépendances système
RUN apk update && apk add --no-cache \
git \
build-base \
python3 \
make \
g++
# Copie des fichiers de dépendances
COPY package*.json ./
# Installation des dépendances (inclut les devDependencies nécessaires au build)
RUN npm install
# Copie du code source
COPY . .
# Build de l'application
RUN npm run build
# Image de production
FROM nginx:alpine
# Installation de Node.js pour les scripts de démarrage
RUN apk update && apk add --no-cache nodejs npm
# Copie des fichiers buildés
COPY --from=builder /app/dist /usr/share/nginx/html
COPY --from=builder /app/package*.json /app/
# Copie de la configuration nginx optimisée pour 4NK_node
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Script de démarrage
COPY start.sh /start-4nk-node.sh
RUN chmod +x /start-4nk-node.sh
# Exposition des ports
EXPOSE 80 3003
# Variables d'environnement pour 4NK_node
ENV SDK_RELAY_WS_URL=ws://sdk_relay_1:8090
ENV SDK_RELAY_HTTP_URL=http://sdk_relay_1:8091
ENV BITCOIN_RPC_URL=http://bitcoin:18443
ENV BLINDBIT_URL=http://blindbit:8000
# Point d'entrée
CMD ["/start-4nk-node.sh"]