FROM node:18-bullseye-slim AS builder WORKDIR /work # Install dependencies COPY package.json package-lock.json ./ RUN npm install # Copy source and build COPY . . RUN ./node_modules/.bin/grunt dist FROM node:18-bullseye-slim AS runtime WORKDIR /work COPY --from=builder /work/dist ./dist CMD ["sh", "-lc", "echo 'jCarousel dist ready' && ls -la dist"]