feat(ci): introduce ci
This commit is contained in:
parent
d093687e01
commit
235f1dfd6b
2 changed files with 41 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM rust:1.85 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue