24 lines
303 B
Text
24 lines
303 B
Text
|
# Build backend
|
||
|
FROM rust:1.82-alpine3.20 as build_backend
|
||
|
|
||
|
RUN apk add musl-dev
|
||
|
|
||
|
WORKDIR /
|
||
|
|
||
|
COPY Cargo.* ./
|
||
|
|
||
|
COPY migration migration/
|
||
|
|
||
|
COPY src src/
|
||
|
|
||
|
RUN cargo build --release
|
||
|
|
||
|
# End container
|
||
|
FROM alpine:3.20
|
||
|
|
||
|
WORKDIR /
|
||
|
|
||
|
COPY --from=build_backend target/release/mailauth .
|
||
|
|
||
|
ENTRYPOINT ["./mailauth"]
|