initial import

This commit is contained in:
2025-11-20 14:59:04 +01:00
commit 4ee1ef0a81
12 changed files with 1392 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
# Build stage
FROM rust:1.91 AS builder
WORKDIR /usr/src/pop_imap_importer
# Copy manifests first to leverage Docker layer caching
COPY src/ Cargo.* ./
# Build the actual application
RUN cargo build --release
RUN cargo install --path .
# Runtime stage
FROM debian:bookworm-slim
# Install CA certificates and OpenSSL runtime libraries
RUN apt-get update && \
apt-get install -y ca-certificates libssl3 && \
rm -rf /var/lib/apt/lists/*
# RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/pop_imap_importer /usr/local/bin/pop_imap_importer
CMD ["pop_imap_importer"]