mirror of
https://github.com/yamadashy/repomix.git
synced 2026-10-25 07:15:06 +01:00
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
27 lines
591 B
Docker
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"]
|