invite-gen/Dockerfile

15 lines
317 B
Docker

FROM rust:alpine3.19 as builder
WORKDIR /opt/build
COPY . .
RUN apk add --no-cache musl-dev
RUN cargo b -r
FROM alpine:3.19
LABEL maintainer='blek! <me@blek.codes>'
COPY . /usr/share/invite-maker-src
COPY --from=builder /opt/build/target/release/invite-maker /usr/bin/invite-maker
CMD [ "/usr/bin/invite-maker" ]