mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-27 20:03:01 +00:00
Update Dockerfile
This commit is contained in:
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user