ihm_client/Dockerfile
4NK CI Bot 8c83757025 fix: Install missing packages in Dockerfile for Alpine Linux
- Add file command for WebAssembly verification
- Add curl, wget, jq, netcat-openbsd for debugging
- Fix CI build failure due to missing file command
2025-09-21 18:20:02 +00:00

43 lines
966 B
Docker
Executable File

# syntax=docker/dockerfile:1.4
FROM node:20-alpine
WORKDIR /app
# Installation des dépendances minimales nécessaires
RUN apk update && apk upgrade && apk add --no-cache \
git \
curl \
wget \
jq \
file \
netcat-openbsd \
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
# Copy project files
COPY . .
# Ensure pkg directory exists and has correct permissions
RUN mkdir -p pkg && chmod -R 755 pkg
# Verify pkg files are present
RUN ls -la pkg/ && file pkg/sdk_client_bg.wasm
# Copy the provided prebuilt WASM package (ESM)
# The directory pkg is provided in the build context
# and already contains sdk_client.js (ES module) and wasm
# so no compilation is required here.
# Installation des dépendances Node.js
RUN npm install
# Copie de la configuration nginx
COPY nginx.dev.conf /etc/nginx/http.d/default.conf
# Script de démarrage
COPY start-dev.sh /start-dev.sh
RUN chmod +x /start-dev.sh
EXPOSE 3003 80
CMD ["/start-dev.sh"]