generated from tipragot/rust
Add Containerfile for relay-server (#42)
All checks were successful
Rust Checks / checks (push) Successful in 1m8s
All checks were successful
Rust Checks / checks (push) Successful in 1m8s
Reviewed-on: corentin/border-wars#42 Reviewed-by: Tipragot <contact@tipragot.fr> Co-authored-by: CoCoSol007 <solois.corentin@gmail.com> Co-committed-by: CoCoSol007 <solois.corentin@gmail.com>
This commit is contained in:
parent
c2ace46c20
commit
8495ab66eb
11
Containerfile
Normal file
11
Containerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM rust:alpine AS builder
|
||||
RUN apk add musl-dev
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN cargo build --package relay-server --release
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/relay-server .
|
||||
EXPOSE 80/tcp
|
||||
CMD ["./relay-server"]
|
Loading…
Reference in a new issue