mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
chore: build dispatch service with other rust crates
This commit is contained in:
parent
e46d706d29
commit
321ba0bb3d
4 changed files with 4 additions and 50 deletions
|
|
@ -1,17 +0,0 @@
|
|||
FROM alpine:latest AS builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN apk add rustup build-base
|
||||
RUN rustup-init --default-host x86_64-unknown-linux-musl --default-toolchain nightly-2024-08-20 --profile default -y
|
||||
|
||||
ENV PATH=/root/.cargo/bin:$PATH
|
||||
ENV RUSTFLAGS='-C link-arg=-s'
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cargo build --bin dispatch --release --target x86_64-unknown-linux-musl
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=builder /build/target/x86_64-unknown-linux-musl/release/dispatch /usr/local/bin/dispatch
|
||||
ENTRYPOINT ["/usr/local/bin/dispatch"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue