FROM node:24.19.0-alpine3.24 WORKDIR /shim COPY package.json package-lock.json ./ RUN npm ci --ignore-scripts --omit=dev COPY shim.mjs ./ USER node # The deadline is inside the container, since a timeout in the caller kills only the docker client and leaves the container running. # It is under convert.py's RUN_SECONDS, so it fires first. ENTRYPOINT ["timeout", "50", "node", "shim.mjs"]