initial import
This commit is contained in:
+26
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user