Merge main into gatherings
This commit is contained in:
parent
a7c36c39ef
commit
2450341b5d
6 changed files with 84 additions and 674 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue