-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
5 additions
and
4 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 |
---|---|---|
|
@@ -8,15 +8,16 @@ RUN apk add gcc \ | |
cvs \ | ||
zlib-dev | ||
|
||
# 下载并编译 libowfat 库,开启ipv6、开启客户端ip通告、关闭full scrape 特性 | ||
# 使用2个RUN,优化缓存(只缓存第一个层) | ||
# 下载并编译 libowfat 库 | ||
RUN cvs -d :pserver:[email protected]:/cvs -z9 co libowfat \ | ||
&& cd libowfat \ | ||
&& make -j4 | ||
|
||
&& make | ||
# 开启ipv6支持 | ||
RUN git clone git://erdgeist.org/opentracker \ | ||
&& cd opentracker \ | ||
&& sed -i '/FEATURES+=-DWANT_V6$/s/^#//' Makefile \ | ||
&& make clean && make -j4 | ||
&& make clean && make | ||
|
||
|
||
FROM alpine | ||
|