Add Containerfile for relay-server (#42)
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:
CoCo_Sol 2024-02-11 14:42:05 +00:00 committed by Corentin
parent c2ace46c20
commit 8495ab66eb

11
Containerfile Normal file
View 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"]