From c826be47fc594d4f4330278c3d193e24cf558639 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Wed, 17 Feb 2021 12:40:45 +0800 Subject: [PATCH] Update Dockerfile --- scripts/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 319c9d6..9b726b7 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -7,11 +7,12 @@ RUN apk add --no-cache --virtual .build-tools git g++ build-base linux-headers c apk add --no-cache --virtual .build-deps curl-dev rapidjson-dev libevent-dev pcre2-dev yaml-cpp-dev && \ git clone https://github.com/svaarala/duktape --depth=1 && \ cd duktape && \ + make -C src-tools && \ python2 -m ensurepip && \ pip2 install PyYAML --no-cache-dir && \ mkdir dist && \ - python2 util/dist.py && \ - cd dist/source/src && \ + python2 util/dist.py --output-directory dist && \ + cd dist/src && \ cc -c -O3 -o duktape.o duktape.c && \ cc -c -O3 -o duk_module_node.o -I. ../extras/module-node/duk_module_node.c && \ ar cr libduktape.a duktape.o && \ @@ -19,7 +20,7 @@ RUN apk add --no-cache --virtual .build-tools git g++ build-base linux-headers c install -m0644 ./*.a /usr/lib && \ install -m0644 duk*.h /usr/include && \ install -m0644 ../extras/module-node/duk_module_node.h /usr/include && \ - cd ../../../.. && \ + cd ../../.. && \ rm -rf duktape /usr/lib/python2.7 && \ git clone https://github.com/tindy2013/subconverter --depth=1 && \ cd subconverter && \