Files
NODEDC_DEVICE_CORE/services/device-control-core/Dockerfile
T

19 lines
604 B
Docker

FROM node:22-alpine
WORKDIR /app/services/device-control-core
COPY services/device-control-core/package.json services/device-control-core/package-lock.json ./
RUN npm ci --omit=dev --ignore-scripts
WORKDIR /app
COPY packages/device-protocol-contract ./packages/device-protocol-contract
COPY packages/device-edge-channel-contract ./packages/device-edge-channel-contract
COPY packages/infrastructure-telemetry-contract ./packages/infrastructure-telemetry-contract
COPY services/device-control-core ./services/device-control-core
USER node
CMD ["node", "services/device-control-core/src/server.mjs"]