FROM node:20-alpine WORKDIR /app # Install Python and pip for running traceability script RUN apk add --no-cache python3 py3-pip # Install Python dependencies for the traceability script RUN pip3 install --break-system-packages requests pandas # Copy package files COPY package*.json ./ # Install Node.js dependencies RUN npm install --production # Copy source code COPY . . # Create directories RUN mkdir -p /data /scripts /srv/data # Expose port EXPOSE 3002 # Start the service CMD ["npm", "start"]