Merge main into gatherings

This commit is contained in:
andrea 2025-03-25 07:30:10 +00:00 committed by SPFN Admin
commit 2450341b5d
6 changed files with 84 additions and 674 deletions

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM rust:alpine AS builder
WORKDIR /app
COPY . .
RUN apk add --no-cache protobuf-dev git musl-dev lld
RUN git submodule update --init --recursive
RUN RUSTFLAGS="-C relocation-model=static -C linker=ld.lld" cargo build --profile prod --target x86_64-unknown-linux-musl
FROM scratch AS final
# Copy the compiled binary from the builder stage
COPY --from=builder /app/target/x86_64-unknown-linux-musl/prod/splatoon-server-rust /splatoon-server-rust
# Command to run the application
ENTRYPOINT ["/splatoon-server-rust"]