Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02072f8
commit ed9a15e
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM alpine:3.12 as build | ||
|
||
RUN apk add -U curl wget ca-certificates | ||
|
||
RUN wget $(curl -s https://api.github.com/repos/miguelmota/ipdr/releases/latest | grep "browser_download_url.*linux.*amd64.tar.gz" | cut -d : -f 2,3 | tr -d \") | ||
RUN tar zxvf *.tar.gz | ||
RUN mv ipdr /ipdr | ||
|
||
FROM alpine:3.12 | ||
COPY --from=build /ipdr /usr/bin/ipdr | ||
ENTRYPOINT ["ipdr"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters