This repository has been archived on 2020-01-05. You can view files and clone it, but cannot push or open issues/pull-requests.
opentracker/Dockerfile

26 lines
587 B
Docker
Raw Normal View History

2019-03-29 15:09:08 +01:00
FROM alpine as builder
RUN apk add --no-cache \
build-base \
cvs \
git \
2020-01-05 14:08:04 +01:00
zlib-dev \
zlib-static
2019-03-29 15:09:08 +01:00
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"]