-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (31 loc) · 880 Bytes
/
Dockerfile
File metadata and controls
41 lines (31 loc) · 880 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
41
# Dockerfile
FROM rust:latest
# Install dependencies
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
curl \
ca-certificates \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js 22 (required for molt.bot)
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Install molt.bot (moltbot CLI) via npm
RUN npm install -g clawdbot
WORKDIR /app
# Copy manifests first for caching
COPY Cargo.toml Cargo.lock* ./
# Create dummy src for dependency caching
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo build --release || true
RUN rm -rf src
# Copy source
COPY . .
# Build
RUN cargo build --release
# Install veto to /usr/local/bin for sandbox use
RUN cp target/release/veto /usr/local/bin/veto
# Test entrypoint
CMD ["cargo", "test"]