feat(gateway): add Dockerfile and GH Actions build script
This commit is contained in:
19
Dockerfile.gateway
Normal file
19
Dockerfile.gateway
Normal file
@@ -0,0 +1,19 @@
|
||||
# twilight requires newer rustc than what is in alpine:latest
|
||||
FROM alpine:edge AS builder
|
||||
|
||||
RUN apk add cargo
|
||||
|
||||
# Precache crates.io index
|
||||
RUN cargo search >/dev/null
|
||||
|
||||
WORKDIR /build
|
||||
COPY proto/ /build/proto
|
||||
COPY gateway/ /build/gateway
|
||||
|
||||
RUN (cd gateway && cargo build --release)
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=builder /build/gateway/target/release/pluralkit /opt/gateway
|
||||
|
||||
ENTRYPOINT ["/opt/gateway"]
|
Reference in New Issue
Block a user