21 lines
350 B
Docker
21 lines
350 B
Docker
# Build stage
|
|
FROM rust:1.82-alpine AS builder
|
|
|
|
RUN apk add --no-cache musl-dev
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN cargo build --release --bin helios-remote-relay
|
|
|
|
# Runtime stage
|
|
FROM alpine:3.20
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/target/release/helios-remote-relay .
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["./helios-remote-relay"]
|