diff --git a/Others/mongoose/7.18/24.03-lts-sp2/Dockerfile b/Others/mongoose/7.18/24.03-lts-sp2/Dockerfile index 48ebb5363dff543a73466d9143322819b207105e..c1290a665fa5d3a9d58f431e9642143a40823da5 100644 --- a/Others/mongoose/7.18/24.03-lts-sp2/Dockerfile +++ b/Others/mongoose/7.18/24.03-lts-sp2/Dockerfile @@ -7,11 +7,11 @@ RUN yum install -y gcc-c++ wget && \ WORKDIR /mongoose -COPY main.c . +COPY example.c . -RUN wget https://github.com/cesanta/mongoose/archive/refs/tags/7.18.tar.gz \ - && tar -zxvf 7.18.tar.gz -C /mongoose --strip-components=1 \ - && gcc main.c mongoose.c -o server -lpthread +RUN wget https://github.com/cesanta/mongoose/archive/refs/tags/${VERSION}.tar.gz \ + && tar -zxvf ${VERSION}.tar.gz -C /mongoose --strip-components=1 \ + && gcc example.c mongoose.c -o server -lpthread FROM ${BASE} diff --git a/Others/mongoose/7.18/24.03-lts-sp2/main.c b/Others/mongoose/7.18/24.03-lts-sp2/example.c similarity index 100% rename from Others/mongoose/7.18/24.03-lts-sp2/main.c rename to Others/mongoose/7.18/24.03-lts-sp2/example.c diff --git a/Others/mongoose/meta.yml b/Others/mongoose/meta.yml index 938ebbafbeabc7f23a5b467f90022bafd3672bf5..ca299e07b800e11130e1b9418e02b6c7e52ca353 100644 --- a/Others/mongoose/meta.yml +++ b/Others/mongoose/meta.yml @@ -1,4 +1,4 @@ 5.1-oe2403sp1: path: 5.1/24.03-lts-sp1/Dockerfile -57.18-oe2403sp2: +7.18-oe2403sp2: path: 7.18/24.03-lts-sp2/Dockerfile \ No newline at end of file