adeo-maturity-tool/Dockerfile
DJP e039ed01b6 Copy i18n/ folder into the Docker image
index.html references /i18n/ui.js (added in 8d0a618 for the EN/FR
toggle) but the Dockerfile only copies index.html, script.js, server/,
and *.py. Without this, the browser 404s on /adeo-maturity/i18n/ui.js
and the language toggle silently fails.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 12:16:21 -04:00

22 lines
440 B
Docker

FROM node:20-alpine
# Python is required by the API endpoints that shell out to convert_data.py,
# import_file.py, and pdf_generator.py.
RUN apk add --no-cache python3 py3-pip py3-reportlab py3-openpyxl
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY server/ ./server/
COPY i18n/ ./i18n/
COPY index.html script.js ./
COPY *.py ./
ENV NODE_ENV=production
ENV PORT=3102
EXPOSE 3102
CMD ["node", "server/index.js"]