From ff8797b3769f9863074a31b1266e8d1d3efa736e Mon Sep 17 00:00:00 2001 From: ryjer Date: Sun, 17 Sep 2023 12:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=94=A8github=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E7=9A=84libowfat=E8=80=81=E7=89=88=E6=9C=AC=E6=BA=90=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.test | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile.test b/Dockerfile.test index 4b02d4e..df865d7 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -3,13 +3,18 @@ FROM alpine:3.15.10 as build WORKDIR /src RUN apk add gcc g++ make \ sed \ - git \ - zlib-dev libowfat-dev + git wget tar \ + zlib-dev + +RUN wget https://github.com/ryjer/libowfat/archive/refs/tags/v0.32.tar.gz \ + && mv v0.32.tar.gz libowfat.tar.gz \ + && tar -zxvf libowfat.tar.gz \ + && cd libowfat \ + && make RUN git clone git://erdgeist.org/opentracker \ && cd opentracker \ - && sed -e "s/^LIBOWFAT_HEADERS=\$(PREFIX)\/libowfat/LIBOWFAT_HEADERS=\/usr\/include\/libowfat/" -e "s/^LIBOWFAT_LIBRARY=\$(PREFIX)\/libowfat/LIBOWFAT_LIBRARY=\/usr\/lib/" Makefile -i \ - && make clean && make + && make FROM alpine:3.15.10