-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 571 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 571 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"]