rust-nex/Dockerfile

24 lines
469 B
Text
Raw Normal View History

2025-03-06 09:50:48 +01:00
FROM rust:1.85 AS builder
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install protobuf-compiler -y
2025-03-06 09:58:22 +01:00
2025-03-06 10:12:55 +01:00
RUN which protoc
2025-03-06 09:50:48 +01:00
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"]