# The photos admin client, built by the mesh from this repository (novox/hq ADR 0069). The same # shape as client/Dockerfile — see the notes there; only the source directory differs. # # The build context is the repository root; every COPY says so. ARG NODE_BASE FROM ${NODE_BASE} AS build WORKDIR /build COPY admin-client/package.json admin-client/package-lock.json ./ RUN npm ci COPY admin-client/public ./public COPY admin-client/src ./src COPY admin-client/.env ./.env RUN npm run build FROM ${NODE_BASE} ENV NODE_ENV=production COPY client-server/serve.mjs /serve.mjs COPY --from=build /build/build /site/ COPY admin-client/.env /site/.env CMD ["node", "/serve.mjs"]