forked from getAsterisk/deepclaude
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (27 loc) · 781 Bytes
/
Dockerfile
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
# Builder stage
FROM rust:latest as builder
WORKDIR /usr/src/deepclaude
COPY . .
# Install build dependencies
RUN apt-get update && \
apt-get install -y pkg-config libssl-dev && \
rm -rf /var/lib/apt/lists/*
# Build the application
RUN cargo build --release
# Runtime stage
FROM debian:bookworm-slim
WORKDIR /usr/local/bin
# Install runtime dependencies
RUN apt-get update && \
apt-get install -y libssl3 ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Copy the built binary
COPY --from=builder /usr/src/deepclaude/target/release/deepclaude .
COPY --from=builder /usr/src/deepclaude/config.toml .
# Set the host and port in config
ENV DEEPCLAUDE_HOST=0.0.0.0
ENV DEEPCLAUDE_PORT=1337
# Expose port 1337
EXPOSE 1337
# Run the binary
CMD ["./deepclaude"]