oxide/Dockerfile
TheTxT da6f2432d2
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
use git.thetxt.io/thetxt/runner-base as builder image in Dockerfile, so
we don't have to install rust for every build
2025-08-23 12:13:19 +02:00

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"]