From e4199bb773d808e24b39af9544793734b9bcc559 Mon Sep 17 00:00:00 2001 From: Chip Senkbeil Date: Wed, 1 Jun 2022 02:14:59 -0500 Subject: [PATCH] Add dockerfile example --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..beb1383 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:3 + +# Install curl so we can download the distant binary +RUN apk add --no-cache curl + +# 1. Specify the distant version +# 2. Download the MUSL artifact as alpine uses musl +# 3. Make the binary executable +ARG distant_version=0.16.3 +ARG distant_url=https://github.com/chipsenkbeil/distant/releases/download/v${distant_version}/distant-linux64-musl +RUN curl -L ${distant_url} > /usr/local/bin/distant && chmod +x /usr/local/bin/distant + +ENTRYPOINT ["/usr/local/bin/distant"]