forked from Swiftyos/AgentProbe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
37 lines (27 loc) · 1.14 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
FROM oven/bun:1.3.12 AS build
WORKDIR /app
COPY package.json bun.lock bunfig.toml ./
COPY dashboard/package.json dashboard/package.json
RUN bun install --frozen-lockfile
COPY . .
RUN bun run dashboard:build
FROM oven/bun:1.3.12-slim AS runtime
WORKDIR /app
ENV NODE_ENV=production \
AGENTPROBE_SERVER_HOST=0.0.0.0 \
AGENTPROBE_SERVER_PORT=7878 \
AGENTPROBE_SERVER_DATA=/app/data \
AGENTPROBE_SERVER_DB=/app/.agentprobe/runs.sqlite3 \
AGENTPROBE_SERVER_DASHBOARD_DIST=/app/dashboard/dist \
AGENTPROBE_SERVER_LOG_FORMAT=json
COPY --from=build /app/package.json /app/bun.lock ./
COPY --from=build /app/dashboard/package.json ./dashboard/package.json
RUN bun install --production --frozen-lockfile
COPY --from=build /app/src ./src
COPY --from=build /app/data ./data
COPY --from=build /app/dashboard/dist ./dashboard/dist
EXPOSE 7878
# Runtime config is supplied via AGENTPROBE_SERVER_* env vars (see infra/helm
# values.yaml). Binding to 0.0.0.0 only requires the explicit --unsafe-expose
# opt-in below; bearer-token API auth and CORS gates are not enforced.
CMD ["bun", "run", "./src/cli/main.ts", "start-server", "--unsafe-expose"]