Files
repomix-mirror/Dockerfile
Kazuki Yamada 37fa9f75fb refactor(docker): Remove redundant npm run build from Dockerfile
The prepare lifecycle script already runs npm run build automatically
during npm ci, making the explicit build step redundant.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:44:43 +09:00

26 lines
571 B
Docker

FROM node:22-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /repomix
WORKDIR /repomix
# Install dependencies and build repomix, then link the package to the global scope
# To reduce the size of the layer, all steps are executed in the same RUN command
COPY . .
RUN npm ci \
&& npm link \
&& npm prune --omit=dev \
&& npm cache clean --force
WORKDIR /app
# Check the operation of repomix
RUN repomix --version
RUN repomix --help
ENTRYPOINT ["repomix"]