-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (24 loc) · 879 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (24 loc) · 879 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
26
27
28
29
30
31
32
33
34
35
36
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
FROM node:22-alpine
WORKDIR /app
COPY package.json package-lock.json ./
# node-pty does not publish an Alpine prebuild, so compile it during install.
RUN apk add --no-cache --virtual .node-pty-build-deps python3 make g++ \
&& npm ci --omit=dev \
&& apk del .node-pty-build-deps
# Install Claude Code CLI for auto-response feature
RUN npm install -g @anthropic-ai/claude-code@2.1.220
COPY --from=build /app/build ./build
COPY prompts/ ./prompts/
RUN mkdir -p /app/messages/history /app/messages/pending
COPY entrypoint.sh /app/entrypoint.sh
RUN sed -i 's/\r$//' /app/entrypoint.sh && chmod +x /app/entrypoint.sh
ENV NODE_ENV=production
ENV MESSAGES_DIR=/app/messages
CMD ["/app/entrypoint.sh"]