2021-10-26 01:02:33 +00:00
|
|
|
FROM rust:1.56-alpine3.13 AS builder
|
|
|
|
RUN apk update
|
|
|
|
RUN apk add musl-dev
|
|
|
|
ADD . .
|
|
|
|
WORKDIR web
|
|
|
|
RUN cargo build --target=x86_64-unknown-linux-musl --release
|
|
|
|
|
|
|
|
FROM scratch
|
2021-10-26 01:52:24 +00:00
|
|
|
COPY --from=builder target/x86_64-unknown-linux-musl/release/pronouns-today-web /
|
|
|
|
CMD ["/pronouns-today-web"]
|