diff options
author | Paolo Asperti <[email protected]> | 2022-06-21 16:15:31 +0200 |
---|---|---|
committer | Paolo Asperti <[email protected]> | 2022-06-21 16:22:55 +0200 |
commit | 1962647b1ae94f001cd77eeff6f5816f556fbaa2 (patch) | |
tree | ec231399dcbf14d2867f2a3d2b153fd0f4cc91bc /docker | |
parent | c87e7bc848bc2e38f0c2df8b4075d4e7e538110a (diff) | |
download | rustdesk-server-1962647b1ae94f001cd77eeff6f5816f556fbaa2.tar.gz rustdesk-server-1962647b1ae94f001cd77eeff6f5816f556fbaa2.zip |
added build workflow
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/Dockerfile | 11 | ||||
-rwxr-xr-x | docker/rootfs/usr/bin/healthcheck.sh | 4 |
2 files changed, 4 insertions, 11 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 64d11bf..0da0e34 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,11 +1,3 @@ -FROM rust:alpine AS builder - -RUN \ - apk -U add musl-dev git file make && \ - git clone --depth=1 https://github.com/rustdesk/rustdesk-server.git /src && \ - cd /src && \ - cargo build -r --manifest-path /src/Cargo.toml - FROM busybox:stable ARG S6_OVERLAY_VERSION=3.1.0.1 @@ -17,9 +9,6 @@ RUN \ rm /tmp/s6-overlay*.tar.xz COPY rootfs / -COPY --from=builder /src/target/release/hbbr /usr/bin/hbbr -COPY --from=builder /src/target/release/hbbs /usr/bin/hbbs -COPY healthcheck.sh /usr/bin/healthcheck.sh ENV RELAY relay.example.com diff --git a/docker/rootfs/usr/bin/healthcheck.sh b/docker/rootfs/usr/bin/healthcheck.sh new file mode 100755 index 0000000..f7ae0d7 --- /dev/null +++ b/docker/rootfs/usr/bin/healthcheck.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +/package/admin/s6/command/s6-svstat /run/s6-rc/servicedirs/hbbr || exit 1 +/package/admin/s6/command/s6-svstat /run/s6-rc/servicedirs/hbbs || exit 1 |