Add containerfile
This commit is contained in:
parent
4209e4b23c
commit
d6fa0cf59a
1 changed files with 23 additions and 0 deletions
23
Containerfile
Normal file
23
Containerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Build backend
|
||||
FROM rust:1.82-alpine3.20 as build_backend
|
||||
|
||||
RUN apk add musl-dev openssl-dev pkgconf openssl-libs-static
|
||||
|
||||
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"]
|
Loading…
Reference in a new issue