Update fly.io deployment (#71)
This commit is contained in:
parent
88542e266c
commit
7f402bd070
|
@ -15,5 +15,8 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
|||
# Runtime image
|
||||
FROM rust:latest
|
||||
|
||||
# Fly.io entrypoint
|
||||
ADD fly-relay.sh .
|
||||
|
||||
# Copy the compiled binaries
|
||||
COPY --from=builder /usr/local/cargo/bin /usr/local/cargo/bin
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
mkdir cert
|
||||
# Nothing to see here...
|
||||
echo "$MOQ_CRT" | base64 -d > dev/moq-demo.crt
|
||||
echo "$MOQ_KEY" | base64 -d > dev/moq-demo.key
|
||||
|
||||
RUST_LOG=info /usr/local/cargo/bin/moq-relay --cert dev/moq-demo.crt --key dev/moq-demo.key
|
Loading…
Reference in New Issue