REVERTED
docker-compose.yml
REVERTED
docker-compose.yml
NEW
Cargo.toml
NEW
Cargo.toml
NEW
Dockerfile
NEW
Dockerfile
···
1
# Use the official Rust image
2
+
FROM rust:1.82-slim as builder
3
+
4
+
# Install build dependencies
5
+
RUN apt-get update && apt-get install -y \
6
+
pkg-config \
7
+
libssl-dev \
8
+
&& rm -rf /var/lib/apt/lists/*
9
10
# Set working directory
11
WORKDIR /app
···
22
# Runtime stage
23
FROM debian:bookworm-slim
24
25
+
# Install runtime dependencies
26
+
RUN apt-get update && apt-get install -y \
27
+
ca-certificates \
28
+
&& rm -rf /var/lib/apt/lists/*
29
+
30
# Create app user
31
RUN useradd -r -s /bin/false appuser
32