invite-gen/Dockerfile

15 lines
317 B
Docker
Raw Normal View History

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