Skip to content

Commit

Permalink
feat(docker): Separate RUN commands
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Dec 30, 2024
1 parent 3cc034f commit d405293
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ 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, npm ci and npm link are executed in the same RUN command
COPY . .
RUN npm ci \
&& npm run build \
&& npm link \
&& npm ci --omit=dev \
&& npm cache clean --force \
&& repomix --help
&& npm cache clean --force

WORKDIR /app

# Check the operation of repomix
RUN repomix --version
RUN repomix --help

ENTRYPOINT ["repomix"]

0 comments on commit d405293

Please sign in to comment.