Files
repomix-mirror/Dockerfile
Claude 007a886095 fix(docker): Restore original order of npm link and npm ci --omit=dev
The previous commit unnecessarily changed the order of npm link and the
dev dependency removal step. Since npm link only creates a global symlink
to the package directory, it should come before npm ci --omit=dev, matching
the original order when npm prune --omit=dev was used.

https://claude.ai/code/session_01WorTDgSv8c9jvVpa1YsSeo
2026-03-10 14:16:48 +00:00

27 lines
591 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 run build \
&& npm link \
&& npm ci --omit=dev \
&& npm cache clean --force
WORKDIR /app
# Check the operation of repomix
RUN repomix --version
RUN repomix --help
ENTRYPOINT ["repomix"]