generated from tipragot/rust
All checks were successful
Rust Checks / checks (push) Successful in 1m6s
Closes #45 Reviewed-on: corentin/border-wars#46 Reviewed-by: Corentin <solois.corentin@gmail.com> Co-authored-by: Tipragot <contact@tipragot.fr> Co-committed-by: Tipragot <contact@tipragot.fr>
12 lines
263 B
Docker
12 lines
263 B
Docker
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
|
|
VOLUME [ "/data" ]
|
|
CMD ["./relay-server"] |