-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 796 Bytes
/
Dockerfile
File metadata and controls
40 lines (29 loc) · 796 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
37
38
39
40
# syntax=docker/dockerfile:1
FROM node:22-slim AS base
# Update package lists and install dependencies
RUN apt-get update && \
apt-get install -y \
python3 \
python3-pip \
git \
build-essential \
python3-dev \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Install Claude Code CLI globally
RUN npm install -g @anthropic-ai/claude-code
# Set destination for COPY
WORKDIR /app
# Copy package files first for better caching
COPY container_src/package*.json ./
# Install npm dependencies
RUN npm install
# Copy TypeScript configuration
COPY container_src/tsconfig.json ./
# Copy source code
COPY container_src/src/ ./src/
# Build TypeScript
RUN npm run build
EXPOSE 8080
# Run the compiled JavaScript
CMD ["node", "dist/main.js"]