init
This commit is contained in:
commit
67b4112623
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM alpine as builder
|
||||
|
||||
RUN apk add --no-cache \
|
||||
build-base \
|
||||
cvs \
|
||||
git \
|
||||
zlib-dev
|
||||
|
||||
RUN cvs -d :pserver:cvs@cvs.fefe.de:/cvs -z9 co libowfat \
|
||||
&& cd libowfat \
|
||||
&& make headers \
|
||||
&& make -j 4 libowfat.a
|
||||
|
||||
RUN git clone --depth=1 git://erdgeist.org/opentracker \
|
||||
&& cd opentracker \
|
||||
&& make -j 4 \
|
||||
FEATURES="-DWANT_FULLSCRAPE -DWANT_COMPRESSION_GZIP" \
|
||||
LDFLAGS="-L../libowfat/ -lowfat -lz -static"
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /opentracker/opentracker /opentracker
|
||||
|
||||
ENTRYPOINT ["/opentracker"]
|
Reference in a new issue