Skip to content

Commit

Permalink
Add dockerfile example
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsenkbeil committed Jun 1, 2022
1 parent 329213d commit e4199bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit e4199bb

Please sign in to comment.