agentgui 1.0.710 → 1.0.711
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +14 -0
- package/Dockerfile +42 -0
- package/package.json +1 -1
package/.dockerignore
ADDED
package/Dockerfile
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
FROM node:22-slim AS base
|
|
2
|
+
WORKDIR /app
|
|
3
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
4
|
+
python3 make g++ git \
|
|
5
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
6
|
+
|
|
7
|
+
FROM base AS deps
|
|
8
|
+
COPY package.json ./
|
|
9
|
+
RUN npm install --omit=dev --ignore-scripts && \
|
|
10
|
+
npm rebuild better-sqlite3 && \
|
|
11
|
+
(npm rebuild onnxruntime-node || true) && \
|
|
12
|
+
(npm rebuild node-pty || true)
|
|
13
|
+
COPY scripts/ ./scripts/
|
|
14
|
+
RUN node scripts/patch-fsbrowse.js && node scripts/copy-vendor.js
|
|
15
|
+
RUN find node_modules -type f \( \
|
|
16
|
+
-name "*.md" -o -name "*.markdown" -o \
|
|
17
|
+
-name "CHANGELOG*" -o -name "HISTORY*" -o \
|
|
18
|
+
-name ".travis.yml" -o -name "*.map" \
|
|
19
|
+
\) -delete 2>/dev/null; \
|
|
20
|
+
find node_modules -type d \( \
|
|
21
|
+
-name "__tests__" -o -name "test" -o \
|
|
22
|
+
-name "tests" -o -name "docs" -o \
|
|
23
|
+
-name "example" -o -name "examples" \
|
|
24
|
+
\) -exec rm -rf {} + 2>/dev/null; true
|
|
25
|
+
|
|
26
|
+
FROM node:22-slim
|
|
27
|
+
ARG VERSION=0.0.0
|
|
28
|
+
LABEL org.opencontainers.image.title="AgentGUI" \
|
|
29
|
+
org.opencontainers.image.description="Multi-agent GUI client for AI coding agents" \
|
|
30
|
+
org.opencontainers.image.version="${VERSION}" \
|
|
31
|
+
org.opencontainers.image.source="https://github.com/AnEntrypoint/agentgui"
|
|
32
|
+
WORKDIR /app
|
|
33
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
34
|
+
git \
|
|
35
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
36
|
+
COPY --from=deps /app/node_modules ./node_modules
|
|
37
|
+
COPY --from=deps /app/static/lib ./static/lib
|
|
38
|
+
COPY . .
|
|
39
|
+
RUN rm -rf .github .git scripts/patch-fsbrowse.js test/ __tests__/ tmp/ .env* .prd .pma
|
|
40
|
+
ENV PORT=3000 BASE_URL=/gm NODE_ENV=production
|
|
41
|
+
EXPOSE 3000
|
|
42
|
+
CMD ["node", "server.js"]
|