use git.thetxt.io/thetxt/runner-base as builder image in Dockerfile, so
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
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
This commit is contained in:
parent
5cb8896d87
commit
da6f2432d2
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
FROM alpine AS builder
|
||||
FROM git.thetxt.io/thetxt/runner-base:latest AS builder
|
||||
|
||||
WORKDIR /server
|
||||
|
||||
ADD . .
|
||||
RUN apk add --no-cache rustup build-base && /usr/bin/rustup-init -y --default-toolchain nightly-unknown-linux-musl --profile minimal && cd server && ~/.cargo/bin/cargo build --release
|
||||
RUN cd server && ~/.cargo/bin/cargo build --release
|
||||
|
||||
FROM alpine
|
||||
EXPOSE 25565
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue