COPY path used email-server but cargo builds email-worker. Also add --cache --cache-dir to kaniko builds for target cache.
13 lines
359 B
Docker
13 lines
359 B
Docker
# Runtime only — binary built externally via cargo
|
|
FROM debian:bookworm-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates libssl3 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY target/x86_64-unknown-linux-gnu/release/email-worker /app/email-worker
|
|
|
|
ENV APP_LOG_LEVEL=info
|
|
ENTRYPOINT ["/app/email-worker"]
|