This repository has been archived on 2019-06-11. You can view files and clone it, but cannot push or open issues or pull requests.
opustags/Dockerfile
Simon Bruder 50223a8c4d
All checks were successful
continuous-integration/drone/push Build is passing
init
2019-06-11 17:21:34 +00:00

24 lines
517 B
Docker

FROM alpine as builder
RUN apk add --no-cache \
build-base \
cmake \
git \
libogg-dev \
pkgconf
RUN git clone --depth=1 https://github.com/fmang/opustags \
&& cd opustags \
&& sed -i -e 's/target_link_libraries(\(.*\))/target_link_libraries(\1 -static)/g' CMakeLists.txt \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make -j 4 \
&& strip opustags
FROM scratch
COPY --from=builder /opustags/build/opustags /opustags
ENTRYPOINT ["/opustags"]