rust-nex/Dockerfile
2025-03-06 10:20:19 +01:00

24 lines
496 B
Docker

FROM rust:1.85 AS builder
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install protobuf-compiler -y
RUN git submodule update --init --recursive
RUN cargo build --release
FROM rust:1.85 AS final
WORKDIR /app
# Copy the compiled binary from the builder stage
COPY --from=builder /app/target/release/splatoon-server-rust /app/splatoon-server-rust
# Set executable permissions
RUN chmod +x /app/splatoon-server-rust
# Command to run the application
CMD ["/app/splatoon-server-rust"]