PronounsToday/web/Dockerfile
2021-10-25 21:02:33 -04:00

11 lines
278 B
Docker

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
COPY --from=builder target/x86_64-unknown-linux-musl/release/pronouns_today_web /
CMD ["/pronouns_today_web"]