rustbucket 0.1.0

A simple Rust-based honeypot. Use at your own risk.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Stage 1: Build the Rust application
FROM rust:latest AS builder

WORKDIR /app
COPY . .

# Build the project with Cargo in release mode
RUN cargo build --release

# Stage 2: Create a lightweight container with the binary
FROM debian:bookworm-slim

# Copy the Rust executable from the builder stage
COPY --from=builder /app/target/release/rustbucket /usr/local/bin/rustbucket

# Set the entrypoint to the Rust executable
ENTRYPOINT ["/usr/local/bin/rustbucket"]