mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
feat: improve dispatch security
This commit is contained in:
parent
aa04124639
commit
45640f08ee
18 changed files with 893 additions and 269 deletions
17
services/dispatch/Dockerfile
Normal file
17
services/dispatch/Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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