All checks were successful
Build, test and push / server_clippy (push) Successful in 51s
Build, test and push / lib_clippy (push) Successful in 50s
Build, test and push / server_test (push) Successful in 1m7s
Build, test and push / lib_test (push) Successful in 1m17s
Build, test and push / build_server_docker_image (push) Successful in 3m49s
Build, test and push / push_server (push) Successful in 44s
we don't have to install rust for every build
13 lines
260 B
Docker
13 lines
260 B
Docker
FROM git.thetxt.io/thetxt/runner-base:latest AS builder
|
|
|
|
WORKDIR /server
|
|
|
|
ADD . .
|
|
RUN cd server && ~/.cargo/bin/cargo build --release
|
|
|
|
FROM alpine
|
|
EXPOSE 25565
|
|
|
|
COPY --from=builder /server/server/target/release/oxide /app/oxide
|
|
WORKDIR /app
|
|
CMD ["/app/oxide"]
|